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