diff --git a/Assets/Scripts/Dialog System/DialogController.cs b/Assets/Scripts/Dialog System/DialogController.cs index 18200bc71..dcd4af54f 100644 --- a/Assets/Scripts/Dialog System/DialogController.cs +++ b/Assets/Scripts/Dialog System/DialogController.cs @@ -1,4 +1,4 @@ -using System; +using System; using AibisDream.Framework; using AibisDream.Kit; using UnityEngine; @@ -30,6 +30,8 @@ namespace AibisDream private void OnEnable() { + SingleCastEventSystem.Global.Register(DialogEventEnum.StartNode, StartDialogNode); + EnumEventSystem.Global.Register(GameLoopEnum.GameStart, ResetAdvanceMode); EnumEventSystem.Global.Register(DialogEventEnum.OptionShow, OnOptionShow); @@ -38,6 +40,8 @@ namespace AibisDream private void OnDisable() { + SingleCastEventSystem.Global.Unregister(DialogEventEnum.StartNode); + EnumEventSystem.Global.UnRegister(GameLoopEnum.GameStart, ResetAdvanceMode); EnumEventSystem.Global.UnRegister(DialogEventEnum.OptionShow, OnOptionShow); diff --git a/Assets/Scripts/Game Loop/EventEnums.cs b/Assets/Scripts/Game Loop/EventEnums.cs index 8f9291dfe..4bebf1962 100644 --- a/Assets/Scripts/Game Loop/EventEnums.cs +++ b/Assets/Scripts/Game Loop/EventEnums.cs @@ -26,6 +26,8 @@ namespace AibisDream public enum DialogEventEnum { + StartNode, + LineStart, LineShown, LineEnd, @@ -41,6 +43,8 @@ namespace AibisDream public enum ScreenEventEnum { + RegisterLineView, + Selected }