Exemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Thor")
     {
         managerScenes.LoadEndScene();
     }
 }
Exemplo n.º 2
0
 public void KillPlayer()
 {
     //SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
     managerScenes.LoadEndScene();
     PlayerPrefs.SetInt("ThorDie", 1);
 }