AnimationStateMachine.OnStateChanged Event
Definition¶
Namespace: Brine2D.Animation
Raised whenever the active state changes — both via automatic transitions,
ForceState(string, bool), and direct Play(string, bool) calls.
Provides the previous state name (or null) and the new state name (or null
when the animator is stopped via ForceStop(bool)).
public event Action<string?,string?>? OnStateChanged;