Beispiel #1
0
 /// <summary>
 /// Handles the take box state.
 /// </summary>
 void HandleTakeBox()
 {
     if (_currentBoxPicked.boxManager.GetState() == BoxState.PICKED)
     {
         _currentBoxPicked = new BoxRobot();
         _currentState     = RobotState.SEARCH;
         return;
     }
     _op.SetTarget(_currentBoxPicked.box);
     _currentBoxPicked.boxManager.SetPicked();
     _op.PickUpObject();
     _currentState = RobotState.WITHBOX;
     return;
 }