Esempio n. 1
0
        public void OnLateUpdate(bool IsFixedUpdateExecuted)
        {
#if FSM_DEBUG
            try
            {
#endif
            CurrentFSMState.OnLateUpdate();
#if FSM_DEBUG
        }
        catch (FSMActionProcessingError e)
        {
            FSMDebugHelper.FSMActionProcessError(this, e);
        }
        catch (FSMTransitionProcessingError e)
        {
            FSMDebugHelper.FSMTransitionProcessError(this, e);
        }
#endif
        }
Esempio n. 2
0
        private void OnEnable()
        {
#if FSM_DEBUG
            try
            {
#endif
            ChangeState(StartingFSMState, false, false);
            FSMEngine.Instance.AddFSM(this);
#if FSM_DEBUG
        }
        catch (FSMActionProcessingError e)
        {
            FSMDebugHelper.FSMActionProcessError(this, e);
        }
        catch (FSMTransitionProcessingError e)
        {
            FSMDebugHelper.FSMTransitionProcessError(this, e);
        }
#endif
        }