public DeflectionMovementListeningPlayerContextActionOverrideStateManager(AnimationController animationControllerRef, PlayerContextActionOverrideSystem PlayerContextActionOverrideSystem, Action OnProjectileDeflectMovementAnimationEnd) { AnimationControllerRef = animationControllerRef; this.PlayerContextActionOverrideSystem = PlayerContextActionOverrideSystem; this.OnProjectileDeflectMovementAnimationEnd = OnProjectileDeflectMovementAnimationEnd; }
public PlayerContextActionOverrideStateBehavior(AnimationController AnimationControllerRef) { this.PlayerContextActionOverrideSystem = new PlayerContextActionOverrideSystem(); base.StateManagersLookup = new Dictionary <PlayerContextActionOverrideState, PlayerContextActionOverrideStateManager>() { { PlayerContextActionOverrideState.LISTENING, new ListeningPlayerContextActionOverrideStateManager() }, { PlayerContextActionOverrideState.DEFLECTION_MOVEMENT, new DeflectionMovementListeningPlayerContextActionOverrideStateManager(AnimationControllerRef, this.PlayerContextActionOverrideSystem, this.OnProjectileDeflectMovementAnimationEnd) } }; base.Init(PlayerContextActionOverrideState.LISTENING); }