using System;
using Framework.Input.States;
using UnityEngine;
namespace Framework.Actors.Platformer {
/// Lets the player character slide across the ground
public class SlideMove : PlayerMove {
/// Called when the actor has started the move
public override void OnStarted() {
base.OnStarted();
EnableGravity(true);
}
/// Called once per physics frame
///
/// Updates the world position of the actor
///
public override void FixedUpdate() {
base.FixedUpdate();
}
///
/// Switches the presenter to the animation state appropriate for this move
///
protected override void SetPresenterState() {
PlatformerActorPresenter presenter = ActorPresenter;
if(presenter != null) {
presenter.SetSlideState();
}
}
}
} // namespace Framework.Actors.Platformer