Пример #1
0
 // Clears the last Path
 public void ClearPath()
 {
     if (Behaviours.ContainsKey(SteeringType.PathFollowing))
     {
         PathFollowing B = (PathFollowing)Behaviours[SteeringType.PathFollowing];
         B.SetPath(null);
     }
 }
Пример #2
0
 // Orders the Unit to move following the provided Path
 public void Move(Path Path)
 {
     if (Behaviours.ContainsKey(SteeringType.PathFollowing))
     {
         PathFollowing B = (PathFollowing)Behaviours[SteeringType.PathFollowing];
         B.SetPath(Path);
     }
 }