示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }