Example #1
0
 private void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     this.transitionManager = this.gameObject.GetComponent <TransitionManager>();
     EngineEventManager.Instance().onTransitionGameState         += TransitionGameState;
     EngineEventManager.Instance().onGameStateTransitionFinished += RegisterGameState;
     EngineEventManager.Instance().onGameStateExit += ExitCurrentState;
 }
Example #2
0
 public static EngineEventManager Instance()
 {
     if (engineEventManager == null)
     {
         engineEventManager = new EngineEventManager();
     }
     return(engineEventManager);
 }
Example #3
0
 private void Start()
 {
     EngineEventManager.Instance().GameStateTransitionFinished(gameState, this.gameObject);
 }