Esempio n. 1
0
 public void OnLowHealthStarted()
 {
     this.PlayerOnLowHealthVisualEffectComponent = this.AssociatedInteractiveObject.InteractiveGameObject.Animator.gameObject.AddComponent <PlayerOnLowHealthVisualEffectComponent>();
     this.AssociatedInteractiveObject.AnimationController.PlayAnimationV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.LOW_HEALTH_VISUAL_EFFET),
                                                                          this.PlayerVisualEffectSystemDefinition.OnLowHealthVisualFeedbackAnimation.GetAnimationInput());
     this.IsOnLowHealth = true;
 }
Esempio n. 2
0
 public PlayerObjectLocomotionMovingInjuredStatemanager(PlayerLocomotionSystem playerLocomotionSystem, AnimationController animationControllerRef)
 {
     this._playerLocomotionSystem        = playerLocomotionSystem;
     this.LocomotionAnimationStateSystem = new LocomotionAnimationStateSystem(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.LOCOMOTION), animationControllerRef);
 }
Esempio n. 3
0
 public void OnLowHealthEnded()
 {
     MonoBehaviour.Destroy(this.PlayerOnLowHealthVisualEffectComponent);
     this.AssociatedInteractiveObject.AnimationController.DestroyAnimationLayerV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.LOW_HEALTH_VISUAL_EFFET));
     this.IsOnLowHealth = false;
     this.ResetPlayerEmissionColor();
 }
Esempio n. 4
0
 public override void OnStateExit()
 {
     this.AnimationControllerRef.StopAnimationLayer(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.DEFLECT_MOVEMENT_RIGHT_ARM));
 }
Esempio n. 5
0
 public override void OnStateEnter()
 {
     this.AnimationControllerRef.PlayAnimationV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.DEFLECT_MOVEMENT_RIGHT_ARM),
                                                 this.PlayerContextActionOverrideSystem.ProjectileDeflectMovementAnimation.GetAnimationInput(), OnAnimationEnd: this.OnProjectileDeflectMovementAnimationEnd);
 }
Esempio n. 6
0
 public override void OnStateExit()
 {
     this.AnimationControllerRef.StopAnimationLayer(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.TARGETTING_UPPER_BODY_POSE));
 }
Esempio n. 7
0
 public override void OnStateEnter()
 {
     this.AnimationControllerRef.PlayAnimationV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.TARGETTING_UPPER_BODY_POSE), this.OverridingSystem.StartTargettingPoseAnimation.GetAnimationInput());
 }