示例#1
0
        public override void OnStateMachineExit(
            Animator animator,
            int state_machine_path_hash)
        {
            var args = new StateMachineControllerEventArgs(
                animator,
                state_machine_path_hash);

            CachedControlledStateManager
            .OnStateMachineControllerExit(this, args);
        }
示例#2
0
        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);
        }