API reference
API reference
Select your platform
No SDKs available
No versions available

LocomotionActiveState Class

Extends MonoBehaviour, IActiveState, ITimeConsumer
Keeps an ActiveState active if it receives any locomotion event.
It becomes false after IdleTime seconds without receiving any events, in order to prevent false deactivations due to the continous nature of sliding locomotion events.

Properties

ILocomotionEventBroadcaster LocomotionBroadcaster[Get]
float IdleTime[Get]
bool Active[Get]

Protected Fields

bool _started[Get]

Member Functions

Sets a custom function that provides the current time in seconds.
Parameters
timeProvider
A delegate that returns the current time in seconds.

Protected Functions

void Awake ( )
void Start ( )
void OnEnable ( )
void OnDisable ( )
void Update ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon