Esempio n. 1
0
        void SetGroupActive()
        {
            GameObject[] gobjects;
            if (m_lastIdx >= 0 && m_lastIdx < m_Group.Count)
            {
                gobjects = m_Group[m_lastIdx].items;
                foreach (var g in gobjects)
                {
                    LuaHelper.DelayDeActive(g);
                }
            }

            if (m_GroupIndex >= 0 && m_GroupIndex < m_Group.Count)
            {
                gobjects = m_Group[m_GroupIndex].items;
                foreach (var g in gobjects)
                {
                    LuaHelper.Active(g);
                }
            }
        }