Beispiel #1
0
 /// <summary>
 /// Sets the job to get to the goal and perform corresponding action.
 /// </summary>
 public override void SetGoal(Selectable goal)
 {
     if (hasAuthority)
     {
         if (goal.owner == owner)
         {
             SetJob(new JobGo(goal.FrontPosition, goal.GetOwnJob(this)));
         }
         else
         {
             SetJob(new JobFollow(goal, goal.GetEnemyJob(this)));
         }
     }
 }