Esempio n. 1
0
 public static void ZerarConfigLevel(int level)
 {
     instance.SetPosicaoPlayer(new Vector3(0, 0, 0));
     PlayerPrefs.SetInt("ColecionaveisLevel" + level, 0);
     PlayerPrefs.SetInt("PortalIsReady", 0);
     SetVidaLevel(level, 0);
     for (int i = 1; i <= SaveControler.TotalColecionavelTodasFases; i++)
     {
         PlayerPrefs.SetInt("Seringa" + i, 0);
     }
 }
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Armadilha")
     {
         if (estaMorto == false)
         {
             Morrer();
         }
     }
     if (collision.gameObject.CompareTag("Save"))
     {
         SaveGame.enabled = true;
         saveControler.SetPosicaoPlayer(collision.transform.position);
     }
 }