public void Reinicia()
 {
     //if (playerS.ReturnLevel() == 1)
     //{
     //    SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
     //}
     //else
     //{
     player.SetActive(true);
     gameOver.SetBool("perde", false);
     vida.ResetLife();
     //}
     if (playerS.ReturnLevel() == 2)
     {
     }
     else if (playerS.ReturnLevel() == 3)
     {
     }
 }
Esempio n. 2
0
 public void AparecerFolheto()
 {
     if (player.ReturnLevel() == 0)
     {
         player.SetLevel(1);
         if (folhetoAmt == null)
         {
             folhetoAmt  = GetComponent <Animator>();
             escreveText = transform.GetChild(0).gameObject.GetComponent <EscreveTexto>();
         }
         folhetoAmt.SetBool("folheto", true);
         escreveText.StartCoroutine("ApareceTexto");
     }
 }