feat: GameManager相关重构
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user