using Framework.Input.States; using UnityEngine; namespace Framework.Actors.Platformer { /// Lets the player control a character crawling on all fours public class CrawlMove : GroundMove { /// /// Switches the presenter to the animation state appropriate for this move /// protected override void SetPresenterState() { PlatformerActorPresenter presenter = ActorPresenter; if(presenter != null) { presenter.SetCrawlState(); } } /// 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