Patrol() 개인적인 메소드

private Patrol ( ) : void
리턴 void
예제 #1
0
 void Update()
 {
     //TODO set up state enum
     if (InRange(player.transform, chaseDistance) && fighter.CanAttack(player))
     {
         AttackBehaviour();
     }
     else if (timeSincePlayerLastSeen < suspicionTimer)
     {
         SuspicionBehaviour();
     }
     else
     {
         patrolBehaviour.Patrol();
     }
     timeSincePlayerLastSeen += Time.deltaTime;
 }