Exemplo n.º 1
0
 public DeflectionMovementListeningPlayerContextActionOverrideStateManager(AnimationController animationControllerRef,
                                                                           PlayerContextActionOverrideSystem PlayerContextActionOverrideSystem, Action OnProjectileDeflectMovementAnimationEnd)
 {
     AnimationControllerRef = animationControllerRef;
     this.PlayerContextActionOverrideSystem       = PlayerContextActionOverrideSystem;
     this.OnProjectileDeflectMovementAnimationEnd = OnProjectileDeflectMovementAnimationEnd;
 }
Exemplo n.º 2
0
 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);
 }