feat: GameManager相关重构

This commit is contained in:
2026-07-17 14:24:02 +08:00
parent 2dcfeec938
commit 21d51945c3
47 changed files with 2064 additions and 1022 deletions
@@ -108,8 +108,8 @@ namespace AibisDream.Framework
draggingObjList = new List<GameObject>();
holdingObjList = new List<GameObject>();
EnumEventSystem.Global.Register(GameLoopEnum.GameStart, ClearAll);
EnumEventSystem.Global.Register(GameLoopEnum.GameQuit, ClearAll);
EnumEventSystem.Global.Register(GameLifecycleEvent.SessionStarted, ClearAll);
EnumEventSystem.Global.Register(GameLifecycleEvent.SessionEnded, ClearAll);
EnumEventSystem.Global.Register(InteractionEventEnum.DialogEnd, HandleDialogueComplete);
EnumEventSystem.Global.Register(InteractionEventEnum.DialogStart, HandleDialogueStart);
@@ -124,8 +124,8 @@ namespace AibisDream.Framework
public override void OnSingletonDestroy()
{
EnumEventSystem.Global.UnRegister(GameLoopEnum.GameStart, ClearAll);
EnumEventSystem.Global.UnRegister(GameLoopEnum.GameQuit, ClearAll);
EnumEventSystem.Global.UnRegister(GameLifecycleEvent.SessionStarted, ClearAll);
EnumEventSystem.Global.UnRegister(GameLifecycleEvent.SessionEnded, ClearAll);
EnumEventSystem.Global.UnRegister(InteractionEventEnum.DialogEnd, HandleDialogueComplete);
EnumEventSystem.Global.UnRegister(InteractionEventEnum.DialogStart, HandleDialogueStart);
@@ -140,4 +140,4 @@ namespace AibisDream.Framework
Dragging,
PointerOver
}
}
}