private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Enemy"))
     {
         OnEnemyReached?.Invoke();
     }
 }
Пример #2
0
 private void EnemyReachedDestination()
 {
     OnEnemyReached?.Invoke();
 }