Beispiel #1
0
 private void OnGameStateChanged(GameMaster.GameState newState)
 {
     foreach (GameStatePage page in m_uiPages)
     {
         page.Page.SetActive(page.GameState == newState);
     }
 }
Beispiel #2
0
    private void OnGameStateChanged(GameMaster.GameState gameState)
    {
        switch (gameState)
        {
        case GameMaster.GameState.IN_GAME:
            ResetScore();
            StartCoroutine(ScoreOnTime());
            break;

        case GameMaster.GameState.END_SCREEN:
            StopAllCoroutines();
            break;
        }
    }