Beispiel #1
0
    IEnumerator WaitForSomeSeconds()
    {
        yield return(new WaitForSeconds(5));

        currentLevel.DisableLevel();
        ui.DisableText();
        playState.InvokeState();
    }
Beispiel #2
0
 public void RestartGame()
 {
     winImage.SetActive(false);
     restartButton.enabled  = false;
     exitButton.enabled     = false;
     finalScoreText.enabled = false;
     highScoreText.enabled  = false;
     scoreText2.enabled     = false;
     scoreText3.enabled     = false;
     exitButton.enabled     = false;
     levelManager.InitNewGame();
     scoreManager.ResetScore();
     playState.InvokeState();
 }