예제 #1
0
 public PlayerDashDirectionActionStateManager(
     PlayerDashActionStateBehavior PlayerDashActionStateBehavior,
     InteractiveObjectActionPlayerSystem interactiveObjectActionPlayerSystem,
     PlayerDashActionStateBehaviorInputDataSystemDefinition playerDashActionStateBehaviorInputDataSystemDefinitionRef,
     ref PlayerDashTargetPositionTrackerSystem PlayerDashTargetPositionTrackerSystemRef,
     PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks)
 {
     this.PlayerDashActionStateBehavior  = PlayerDashActionStateBehavior;
     InteractiveObjectActionPlayerSystem = interactiveObjectActionPlayerSystem;
     this._playerDashActionStateBehaviorInputDataSystemDefinitionRef = playerDashActionStateBehaviorInputDataSystemDefinitionRef;
     this.PlayerDashTargetPositionTrackerSystemRef = PlayerDashTargetPositionTrackerSystemRef;
     this.PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks = PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks;
 }
예제 #2
0
        public PlayerDashActionStateBehavior(PlayerDashActionStateBehaviorInputDataSystemDefinition PlayerDashActionStateBehaviorInputDataSystemDefinition,
                                             InteractiveObjectActionPlayerSystem InteractiveObjectActionPlayerSystem,
                                             PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks)
        {
            this._playerDashActionStateBehaviorInputDataSystemDefinition = PlayerDashActionStateBehaviorInputDataSystemDefinition;
            this.PlayerDashTargetPositionTrackerSystem = new PlayerDashTargetPositionTrackerSystem();

            base.StateManagersLookup = new Dictionary <PlayerDashActionState, APlayerDashActionStateManager>()
            {
                { PlayerDashActionState.LISTENING, new PlayerDashActionListeningStateManager(this) },
                {
                    PlayerDashActionState.DASH_DIRECTION, new PlayerDashDirectionActionStateManager(this, InteractiveObjectActionPlayerSystem,
                                                                                                    this._playerDashActionStateBehaviorInputDataSystemDefinition, ref PlayerDashTargetPositionTrackerSystem, PlayerObjectInteractiveObjectActionStateManagerCallbacks_PlayerDashDirectionCallbacks)
                }
            };

            base.Init(PlayerDashActionState.LISTENING);
        }