对话框优化
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user