コード例 #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;
 }
コード例 #2
0
 public PlayerObjectLocomotionMovingInjuredStatemanager(PlayerLocomotionSystem playerLocomotionSystem, AnimationController animationControllerRef)
 {
     this._playerLocomotionSystem        = playerLocomotionSystem;
     this.LocomotionAnimationStateSystem = new LocomotionAnimationStateSystem(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.LOCOMOTION), animationControllerRef);
 }
コード例 #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();
 }
コード例 #4
0
 public override void OnStateExit()
 {
     this.AnimationControllerRef.StopAnimationLayer(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.DEFLECT_MOVEMENT_RIGHT_ARM));
 }
コード例 #5
0
 public override void OnStateEnter()
 {
     this.AnimationControllerRef.PlayAnimationV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.DEFLECT_MOVEMENT_RIGHT_ARM),
                                                 this.PlayerContextActionOverrideSystem.ProjectileDeflectMovementAnimation.GetAnimationInput(), OnAnimationEnd: this.OnProjectileDeflectMovementAnimationEnd);
 }
コード例 #6
0
 public override void OnStateExit()
 {
     this.AnimationControllerRef.StopAnimationLayer(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.TARGETTING_UPPER_BODY_POSE));
 }
コード例 #7
0
 public override void OnStateEnter()
 {
     this.AnimationControllerRef.PlayAnimationV2(PlayerObjectAnimationLayersOrders.GetLayerNumber(PlayerObjectAnimationLayers.TARGETTING_UPPER_BODY_POSE), this.OverridingSystem.StartTargettingPoseAnimation.GetAnimationInput());
 }