Пример #1
0
    public void continuebutton()
    {
        Time.timeScale = 1;
        torn++;
        TutoGen.SetActive(false);
        if (torn == 2)
        {
            instruccions.SetActive(true);
            Invoke("waitMovementNow", 1);
        }
        if (torn == 5)
        {
            Invoke("femellaAgafada", 4);
        }

        if (torn == 10)
        {
            Invoke("enemicEsquivat", 4);
        }
        if (torn == 13)
        {
            Invoke("botiquinAgafat", 4);
        }
        if (torn == 17)
        {
            Invoke("fuelAgafat", 4);
        }
        if (torn == 25)
        {
            if (xml.firstPlay())
            {
                xml.firstPlayPlayed();
                Application.LoadLevel("menus");
            }
            else
            {
                Application.LoadLevel("Ajustes");
            }
        }
    }