Exemple #1
0
        public virtual void Update(int frameInterval, Action <FsmOutput> addOutput)
        {
            ElapsedTime += frameInterval;

            if (_activeTransition != null)
            {
                if (_activeTransition.Update(frameInterval, addOutput))
                {
                    TransitionCallback(_activeTransition.To, null, StateId.ToString(), addOutput);
                }
            }
        }
Exemple #2
0
        public virtual void Update(int frameInterval, Action <FsmOutput> addOutput)
        {
            ElapsedTime += frameInterval;

            if (_activeTransition != null)
            {
                if (_activeTransition.Update(frameInterval, addOutput))
                {
                    TransitionCallback(_activeTransition.To, null, string.Format("{0} Target: {1}", GetStateName(StateId),
                                                                                 GetStateName(_activeTransition.To)), addOutput);
                }
            }
        }