示例#1
0
 public bool Override(TankOrder command)
 {
     if (!isOverride)
     {
         return(false);
     }
     overrideOrder = command;
     return(true);
 }
示例#2
0
 // Inputs are turned into parameters, stored in tankOrder, then pass to base functions
 private void OrderTank()
 {
     if (isOverride)
     {
         currentOrder = overrideOrder;
     }
     BaseMove_1(currentOrder.move, currentOrder.steer);
     BaseRotateTurret(currentOrder.direction);
     //BaseSteer(currentOrder.steer);
 }