Exemplo n.º 1
0
        /// <summary>
        /// Intermediary function to request the parent state to transition myself to nextState
        /// </summary>
        /// <param name="nextState"> The class type of the next state to transition to. </param>
        /// <param name="args"> The arguments of the transition. </param>
        public bool DoTransition(System.Type nextState, object[] args)
        {
            // This state wants to transition to nextState
            // Request the parent to do it

            if (m_Parent == null)
            {
                return(false);
            }

            return(m_Parent.RequestChildTransition(this, nextState, args));
        }