public override void OnStateExit(Animator animator, AnimatorStateInfo state_info, int layer_index) { var args = new StateControllerEventArgs( animator, state_info, layer_index); CachedControlledStateManager .OnStateControllerExit(this, args); }
public void OnStateControllerUpdate(object sender, StateControllerEventArgs args) { var state_controller = (IStateController)sender; var info = new ManagedStateEventInfo <ManagedStateEventArgs>( ManagedStateEventType.StateUpdate, state_controller.OnManagedStateVerifyUpdate, state_controller.OnManagedStateUpdate, AnyStateUpdate.Invoke, new ManagedStateEventArgs(state_controller, args.Animator, args.AnimatorStateInfo, args.LayerIndex)); StateEventInfoQueue.Enqueue(info); }
public void OnStateControllerExit(object sender, StateControllerEventArgs args) { var state_controller = (IStateController)sender; ActiveStateControllersSet.Remove(state_controller); var info = new ManagedStateEventInfo <ManagedStateEventArgs>( ManagedStateEventType.StateExit, state_controller.OnManagedStateVerifyExit, state_controller.OnManagedStateExit, AnyStateExit.Invoke, new ManagedStateEventArgs(state_controller, args.Animator, args.AnimatorStateInfo, args.LayerIndex)); StateEventInfoQueue.Enqueue(info); }