public void EndGame() { thescoremanager.scoreincreaseing = false; theplayer.gameObject.SetActive(false); thePausebutton.SetActive(false); theDeathscreen.gameObject.SetActive(true); scroll.parallax = false; sound.DeathMusic(); }
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(); }