EventSystem扩展

This commit is contained in:
2025-01-16 19:21:33 +08:00
parent cb3eff896d
commit 879f74b7bf
11 changed files with 234 additions and 53 deletions
+7 -6
View File
@@ -91,11 +91,11 @@ namespace AibisDream
bool isAutoSkip = false)
{
gameObject.SetActive(true);
// 没有dialogText说明不能显示对话,直接跳过
if (!dialogText)
{
return;
}
// // 没有dialogText说明不能显示对话,直接跳过
// if (!dialogText)
// {
// return;
// }
// 把原有对话清掉
ClearBox();
@@ -126,8 +126,9 @@ namespace AibisDream
if (_nextStep == null) return;
EnumEventSystem.Global.Send(DialogEventEnum.LineEnd);
_nextStep.Invoke();
var next = _nextStep;
_nextStep = null;
next.Invoke();
}
/// <summary>