Exemplo n.º 1
0
 void Update()
 {
     if (EndGame == true && manager.ListCount())
     {
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
     }
 }
Exemplo n.º 2
0
 void OnTriggerEnter(Collider col)
 {
     if (col.tag == "Player" && manager.ListCount())
     {
         this.GetComponent <Collider>().enabled = false;
         anim.SetTrigger("open");
     }
 }
Exemplo n.º 3
0
 void OnTriggerEnter(Collider col)
 {
     if (col.tag == "Player" && manager.ListCount())
     {
         ability.SetActive(true);
         Destroy(gameObject);
     }
 }