From 19138f624a3314aeca7c8ef018d64a5209d0cf65 Mon Sep 17 00:00:00 2001 From: Ding Yuntian <1491671119@qq.com> Date: Mon, 9 Mar 2026 16:01:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(dialog):=20=E5=AF=B9=E8=AF=9D=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=9B=86=E6=88=90=20SingleCastEventSystem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Dialog System/DialogController.cs | 6 +++++- Assets/Scripts/Game Loop/EventEnums.cs | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 }