Пример #1
0
 private void OnGameStateChanged(GameMaster.GameState newState)
 {
     foreach (GameStatePage page in m_uiPages)
     {
         page.Page.SetActive(page.GameState == newState);
     }
 }
Пример #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;
        }
    }