refactor: enhance GameStateStore integration and improve skill management
This commit is contained in:
@@ -15,8 +15,11 @@ public partial class GhostEventHandler : Node
|
||||
|
||||
public override void _ExitTree()
|
||||
{
|
||||
EventBus.Instance.LevelStarted -= OnLevelStarted;
|
||||
EventBus.Instance.LevelCompleted -= OnLevelCompleted;
|
||||
if (EventBus.Instance != null)
|
||||
{
|
||||
EventBus.Instance.LevelStarted -= OnLevelStarted;
|
||||
EventBus.Instance.LevelCompleted -= OnLevelCompleted;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnLevelStarted(int levelIndex, Node currentScene)
|
||||
|
||||
Reference in New Issue
Block a user