using System;
using UnityEngine;
using Framework.Input.States;
namespace Framework.Actors.Platformer {
/// Lets the player control a character sneaking in a lowered stance
public class SneakMove : GroundMove {
///
/// Switches the presenter to the animation state appropriate for this move
///
protected override void SetPresenterState() {
PlatformerActorPresenter presenter = ActorPresenter;
if(presenter != null) {
presenter.SetSneakState();
}
}
/// Returns the speed at which the actor should move
/// Inputs the player has made this frame
/// The speed at which the actor should move
protected override float GetMovementSpeed(PlatformerInputState inputState) {
return Abilities.SneakingSpeed;
}
}
} // namespace Framework.Actors.Platformer