void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { if (f) { anim1.startAnim.SetBool("startOpen", false); dm.EndDialoge(); } else { anim2.startAnim.SetBool("startOpen", false); dm.EndDialoge(); } } }
public void OnTriggerExit2D(Collider2D other) { anim.startAnim.SetBool("startOpen", false); dm.EndDialoge(); }