public bool Override(TankOrder command) { if (!isOverride) { return(false); } overrideOrder = command; return(true); }
// 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); }