public void OnMouseUp() { StartCoroutine(DeathScript.Reset(false)); if (gameObject.name == "try again") { DeathScript.ResetDeaths(); } }
void goBack() { if (gameObject.name == "backtomenu") { DeathScript.ResetDeaths(); } infoPanel = GameObject.Find("infoui(Clone)"); SceneManager.LoadScene("LvlPack" + (currentPack + 1).ToString()); }
public void OnMouseUp() { if (pack == "Pack 1") { SceneManager.LoadScene(n); } else if (pack == "Pack 2") { SceneManager.LoadScene(n + lvlCount * 1); } else if (pack == "Pack 3") { SceneManager.LoadScene(n + lvlCount * 2); } DeathScript.ResetDeaths(); }
public void OnMouseUp() { DeathScript.ResetDeaths(); PlayerMovement.NextLevel(); }