コード例 #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();
    }