public DefaultTankState( BaseStateObject controlledObject, BaseInputCache inputCache, BaseAnimationHandlingCache animationHandlingCache) : base(controlledObject, inputCache, animationHandlingCache) { if (controlledObject is TankObject) { _tank = controlledObject as TankObject; } }
public DefaultLocomotionState( BaseStateObject controlledObject, BaseInputCache inputCache, BaseAnimationHandlingCache animationHandlingCache) : base(controlledObject, inputCache, animationHandlingCache) { if (controlledObject is DriverController) { driver = ControlledObject as DriverController; } }
public override BaseState CreateProduct( BaseStateObject controlledObject, BaseInputCache inputCache, BaseAnimationHandlingCache animationHandlingCache) { DefaultLocomotionState newState = new DefaultLocomotionState( controlledObject, inputCache, animationHandlingCache); return(newState); }