Beispiel #1
0
 public void Start()
 {
     QuitWithSuccessEvent.AddListener(LogQuitSuccess);
     QuitWithFailureEvent.AddListener(LogQuitFailure);
     //QuitWithSuccessEvent.AddListener(CheckForceQuit);
     //QuitWithFailureEvent.AddListener(CheckForceQuit);
     // Officially, order of event execution is undefined.
     // In reality, it goes top to bottom with inspector events first.
     // Neither of these is what I want for CheckForceQuit, so I'm moving the check.
 }
Beispiel #2
0
 public void FailScene()
 {
     CheckForceQuit();  // Bypasses all events and just kills the game.
     QuitWithFailureEvent.Invoke();
 }