public void ShowHighScore() { panelMainMenu.SetActive(false); panelHighScore.SetActive(true); gm.ClearMap(); SimpleText.getInstance().SetDisplayText(strHighScore); m_gameState = GameState.HighScore; }
public void NewMatch() { panelCountdown.gameObject.SetActive(true); panelCountdown.StartCountDown(timeToNewMatch); gm.ClearMap(); SimpleText.getInstance().SetDisplayText("" + scorePlayers [0] + " : " + scorePlayers [1]); if (players [0] != null) { Destroy(players [0]); } if (players [1] != null) { Destroy(players [1]); } timer = timeToNewMatch; }