Пример #1
0
        public PlayerObjectLocomotionStateBehavior(PlayerObjectLocomotionState StartState, AnimationController animationControllerRef, A_AnimationPlayableDefinition playerLocomotionTree)
        {
            this.playerLocomotionSystem = new PlayerLocomotionSystem(playerLocomotionTree);
            base.StateManagersLookup    = new Dictionary <PlayerObjectLocomotionState, PlayerObjectLocomotionStateManager>()
            {
                { PlayerObjectLocomotionState.LISTENING, new PlayerObjectLocomotionDummyStateManager() },
                { PlayerObjectLocomotionState.MOVING, new PlayerObjectLocomotionMovingStatemanager(this.playerLocomotionSystem, animationControllerRef) },
                { PlayerObjectLocomotionState.MOVING_INJURED, new PlayerObjectLocomotionMovingInjuredStatemanager(this.playerLocomotionSystem, animationControllerRef) }
            };

            base.Init(PlayerObjectLocomotionState.LISTENING);
            this.SetState(StartState);
        }
Пример #2
0
 public PlayerObjectLocomotionMovingInjuredStatemanager(PlayerLocomotionSystem playerLocomotionSystem, AnimationController animationControllerRef)
 {
     this._playerLocomotionSystem        = playerLocomotionSystem;
     this.LocomotionAnimationStateSystem = new LocomotionAnimationStateSystem(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.LOCOMOTION), animationControllerRef);
 }