예제 #1
0
    public void EndGame()
    {
        thescoremanager.scoreincreaseing = false;
        theplayer.gameObject.SetActive(false);

        thePausebutton.SetActive(false);
        theDeathscreen.gameObject.SetActive(true);
        scroll.parallax = false;
        sound.DeathMusic();
    }
예제 #2
0
    public void Restartgame() //másahonnan is meghívható metódus
    {
        //     StartCoroutine("RestartgameCo"); //meghívás

        thescoremanager.scoreincreaseing = false;
        theplayer.gameObject.SetActive(false); // inactiv, nem látjuk

        thePausebutton.SetActive(false);
        theDeathscreen.gameObject.SetActive(true);
        scroll.paralax = false;
        sound.DeathMusic();
    }