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