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