Exemplo n.º 1
0
 public void OnTriggerExit2D(Collider2D coll)
 {
     playa = (GameObject.FindGameObjectWithTag("Player")).GetComponent <PlayerScript>();
     if (coll.gameObject.tag == "endwall" && playa.Alive())
     {
         endPass = true;
     }
 }
Exemplo n.º 2
0
 public void OnTriggerExit2D(Collider2D coll)
 {
     playa = (GameObject.FindGameObjectWithTag("Player")).GetComponent<PlayerScript>();
     if (coll.gameObject.tag == "endwall" && playa.Alive())
     {
         endPass = true;
     }
 }