对话框优化

This commit is contained in:
2025-05-28 15:58:50 +08:00
parent 34f6aac9a1
commit 26e48ec37f
24 changed files with 1579 additions and 1321 deletions
@@ -14,29 +14,8 @@ namespace AibisDream
# region controller状态标识
private bool _isTalking;
public bool IsTalking
{
set
{
if (_isTalking == value) return;
_isTalking = value;
Debug.Log($"IsTalking 状态更改: {_isTalking}");
if (value)
{
OnDialogueStart?.Invoke();
}
else
{
OnDialogueComplete?.Invoke();
}
}
get => _isTalking;
}
public bool quickRunMode;
public bool autoRunMode;
# endregion
@@ -52,13 +31,11 @@ namespace AibisDream
{
EnumEventSystem.Global.Send(InteractionEventEnum.End);
OnDialogueStart?.Invoke();
IsTalking = true;
});
_dialogueRunner.onDialogueComplete.AddListener(() =>
{
EnumEventSystem.Global.Send(InteractionEventEnum.Start);
OnDialogueComplete?.Invoke();
IsTalking = false;
});
}