Exemplo n.º 1
0
 public void OnMouseUp()
 {
     StartCoroutine(DeathScript.Reset(false));
     if (gameObject.name == "try again")
     {
         DeathScript.ResetDeaths();
     }
 }
Exemplo n.º 2
0
    void goBack()
    {
        if (gameObject.name == "backtomenu")
        {
            DeathScript.ResetDeaths();
        }

        infoPanel = GameObject.Find("infoui(Clone)");

        SceneManager.LoadScene("LvlPack" + (currentPack + 1).ToString());
    }
Exemplo n.º 3
0
    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();
    }
Exemplo n.º 4
0
 public void OnMouseUp()
 {
     DeathScript.ResetDeaths();
     PlayerMovement.NextLevel();
 }