Ejemplo n.º 1
0
        /// <summary>
        /// Intermediary function to recursively pass the message to all children
        /// </summary>
        /// <param name="args"> The arguments of the message </param>
        public void ReceiveMessage(object[] args)
        {
            // notify all the children first
            for (int i = 0; i < m_ChildSMs.Count; i++)
            {
                m_ChildSMs[i].ReceiveMessage(args);
            }

            if (m_State != null)
            {
                m_State.ReceiveMessage(args);
            }
        }