public void Roll() { LockAnimation = true; CurrentStanceAnimations = RollAnimations; SetRobotAnimation(CurrentStanceAnimations.GetDefaultAnimationName()); CurrentStanceAnimations = CrouchAnimations; if (Sounds.RollSound != UnitSounds.RollSounds.None) { PlayerSFXGenerator.PlayRollSound(Sounds.RollSound); } }
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); } } }