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 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); }
public void OnStateControllerEntry(object sender, StateControllerEventArgs args) { var state_controller = (IStateController)sender; ActiveStateControllersSet.Add(state_controller); var info = new ManagedStateEventInfo <ManagedStateEventArgs>( ManagedStateEventType.StateEntry, state_controller.OnManagedStateVerifyEnter, state_controller.OnManagedStateEnter, AnyStateEntry.Invoke, new ManagedStateEventArgs(state_controller, args.Animator, args.AnimatorStateInfo, args.LayerIndex)); StateEventInfoQueue.Enqueue(info); }