API reference
PlayerMovementController
The sample player state and notification event.
Source: src/Player/PlayerMovementController.cs.
public enum PlayerMotionState { Idling, Walking, Running, OnAir }
public static PlayerMotionState PlayerState { get; }
public delegate void PlayerStateActions(PlayerMotionState state);
public static event PlayerStateActions EPlayerStateChanged;The state is shared statically by the example player. The event is raised during initialization and state changes. Subscribe in OnEnable and unsubscribe in OnDisable.
Movement, sprint and jump inputs are read internally. There are no public movement-action methods in this class. Adapt RSBDemoInput or the controller if your game needs another source of movement. See Player movement setup.