예제 #1
0
 public void ResetEnemy()
 {
     fieldOfView.enabled = true;
     reload.enabled      = true;
     wander.enabled      = usesWander;
     transform.position  = startPosition;
     //gameObject.SetActive(true);
     if (wander.enabled)
     {
         wander.Reset();
     }
     reload.Reset();
     if (isDead)
     {
         animator.SetTrigger("Reset");
     }
     isDead = false;
 }