Beispiel #1
0
 /// <summary>
 /// Deliver the shelf
 /// </summary>
 /// <param name="robot">Robot</param>
 public void StartTask(ShelfTransporters robot)
 {
     if (Math.Round(robot.x, 1) == 16 && Math.Round(robot.z, 1) == -2.4)
     {
         shelf.Move(shelf.x, 1000, shelf.z);
     }
     else
     {
         shelf.Move(shelf.x, 0, shelf.z);
     }
     robot.RemoveShelf();
 }
 /// <summary>
 /// Starts the delivery task
 /// </summary>
 /// <param name="forklift">The forklift that needs to deliver the shelf</param>
 public void StartTask(ShelfTransporters forklift)
 {
     node.shelf = shelf;
     shelf.Move(shelf.x, 0, shelf.z);
     forklift.RemoveShelf();
 }