예제 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Weapon" && attacked == false)
     {
         StartCoroutine(Attacked());
         enemyHealth.ChangeHealth(-1);
     }
     if (other.tag == "EnemyGoal" && !reachGoal)
     {
         scoreManager.AddEnemiesEscaped();
         StartCoroutine(ReachedGoal());
     }
 }