Beispiel #1
0
    void HandleGameStateChanged(SimulatorManager.SimulatorState currentState, SimulatorManager.SimulatorState previousState)
    {
        if (previousState == SimulatorManager.SimulatorState.BOOTING && currentState == SimulatorManager.SimulatorState.RUNNING)
        {
            FadeOut();
        }

        if (previousState != SimulatorManager.SimulatorState.BOOTING && currentState == SimulatorManager.SimulatorState.BOOTING)
        {
            FadeIn();
        }
    }
 void HandleGameStateChanged(SimulatorManager.SimulatorState currentState, SimulatorManager.SimulatorState previousState)
 {
     _pauseMenu.gameObject.SetActive(currentState == SimulatorManager.SimulatorState.PAUSED);
 }