Beispiel #1
0
 public void PlayGameButton()
 {
     if (isGameOver && !toPlayRequest)
     {
         sharedSoundHandler.PlayButtonClick();
         sharedSoundHandler.StopPlayingMenu();
         sharedSoundHandler.StartPlayingGame();
         fadeGameHandler.FadeIn();
         toPlayRequest = true;
     }
 }
Beispiel #2
0
    public void PlayGameButton()
    {
        if (!playGameRequest)
        {
            GameInformation.SetPlayerName(GameObject.FindGameObjectWithTag(
                                              "PlayerNameText").GetComponent <UnityEngine.UI.Text>().text);

            menuMusicHandler.PlayButtonClick();
            menuMusicHandler.StopPlayingMenu();
            menuMusicHandler.StartPlayingGame();
            fadeGameHandler.FadeIn();
            playGameRequest = true;
        }
    }