Пример #1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         enemyParent.OnIdle();
     }
 }
Пример #2
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.tag.Equals("Player"))
     {
         enemyParent.OnIdle();
     }
 }