Beispiel #1
0
 public void Roll()
 {
     LockAnimation           = true;
     CurrentStanceAnimations = RollAnimations;
     SetRobotAnimation(CurrentStanceAnimations.GetDefaultAnimationName());
     CurrentStanceAnimations = CrouchAnimations;
     if (Sounds.RollSound != UnitSounds.RollSounds.None)
     {
         PlayerSFXGenerator.PlayRollSound(Sounds.RollSound);
     }
 }
Beispiel #2
0
        public void GoProne()
        {
            if (LockAnimation)
            {
                return;
            }

            if (CurrentMovementInput == MovementInputs.Left || CurrentMovementInput == MovementInputs.Right)
            {
            }
            else
            {
                CurrentStanceAnimations = ProneAnimations;
                SetRobotAnimation(CurrentStanceAnimations.GetDefaultAnimationName());
                if (Sounds.ProneStartSound != UnitSounds.ProneStartSounds.None)
                {
                    PlayerSFXGenerator.PlayProneStartSound(Sounds.ProneStartSound);
                }
            }
        }