public override void OnStateMachineExit( Animator animator, int state_machine_path_hash) { var args = new StateMachineControllerEventArgs( animator, state_machine_path_hash); CachedControlledStateManager .OnStateMachineControllerExit(this, args); }
public void OnStateMachineControllerExit(object sender, StateMachineControllerEventArgs args) { var state_controller = (IStateController)sender; ActiveStateControllersSet.Remove(state_controller); var info = new ManagedStateEventInfo <ManagedStateMachineEventArgs>( ManagedStateEventType.StateMachineExit, state_controller.OnManagedStateMachineVerifyExit, state_controller.OnManagedStateMachineExit, AnyStateMachineExit.Invoke, new ManagedStateMachineEventArgs(state_controller, args.Animator, args.StateMachinePathHash)); StateEventInfoQueue.Enqueue(info); }