Example #1
0
 public void NewGame()
 {
     PlayerPrefs.SetInt("Int", 0);
     Persistence.ResetGame();
     PlayerPrefs.SetString("_sceneName", NovoJogo);
     LoadingSisten.LoadLevel(NextCenaName);
 }
Example #2
0
 public void IntroNextScene()
 {
     if (timeStart <= 26)
     {
         PlayerPrefs.SetString("_sceneName", NextCenaName);
         LoadingSisten.LoadLevel(NextCenaName);
     }
 }
Example #3
0
    IEnumerator DeathAnim()
    {
        PlayerAnim.SetBool("Morto", true);
        yield return(new WaitForSeconds(2.0f));

        PlayerPrefs.SetString("_sceneName", NextCenaName);
        LoadingSisten.LoadLevel(NextCenaName);
    }
Example #4
0
    private void OnTriggerEnter(Collider col)
    {
        if (col == coll01 || col == coll02 || col == coll03 || col == coll04)
        {
            Debug.Log("Collision");



            if (PlayerHealth <= 0)
            {
                PlayerPrefs.SetString("_sceneName", NextCenaName);
                LoadingSisten.LoadLevel(NextCenaName);
            }
        }
    }
Example #5
0
    // Update is called once per frame
    void Update()
    {
        Attack();

        if (Morte == true)
        {
            TimeAnimation += Time.deltaTime;
            if (TimeAnimation >= 0.7f)
            {
                PlayerPrefs.SetInt("SlimesMortos", 3);
                PlayerPrefs.SetString("_sceneName", NextCenaName);
                LoadingSisten.LoadLevel(NextCenaName);
            }
        }
    }
Example #6
0
 void EndReached(UnityEngine.Video.VideoPlayer vp)
 {
     PlayerPrefs.SetString("_sceneName", NextCenaName);
     LoadingSisten.LoadLevel(NextCenaName);
 }
Example #7
0
 public void NextScene()
 {
     PlayerPrefs.SetString("_sceneName", NextCenaName);
     LoadingSisten.LoadLevel(NextCenaName);
 }