예제 #1
0
 private void MoveToNearestWeapon()
 {
     if (nearestLootable.Exists())
     {
         NavPath.Move(ref agent, ref currentDestination, ref directionGuide, nearestLootable.transform.position);
     }
 }
예제 #2
0
 private void MoveToNearestEnemy()
 {
     if (nearestEnemy.Exists())
     {
         NavPath.Move(ref agent, ref currentDestination, ref directionGuide, nearestEnemy.transform.position);
     }
 }
예제 #3
0
 private void Move()
 {
     NavPath.Move(ref agent, ref currentDestination, ref directionGuide);
 }