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. }
public void FailScene() { CheckForceQuit(); // Bypasses all events and just kills the game. QuitWithFailureEvent.Invoke(); }