private void OnTriggerExit2D(Collider2D collision) { if (collision.CompareTag("Player")) { enemyParent.OnIdle(); } }
private void OnTriggerExit2D(Collider2D collision) { if (collision.tag.Equals("Player")) { enemyParent.OnIdle(); } }