Пример #1
0
 public DefaultTankState(
     BaseStateObject controlledObject,
     BaseInputCache inputCache,
     BaseAnimationHandlingCache animationHandlingCache)
     : base(controlledObject, inputCache, animationHandlingCache)
 {
     if (controlledObject is TankObject)
     {
         _tank = controlledObject as TankObject;
     }
 }
Пример #2
0
 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);
        }