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