Exemple #1
0
        public void Destroy()
        {
            //Engine.Utility.TimerAxis.Instance().KillTimer(0, this);
            Engine.Utility.EventEngine.Instance().RemoveEventListener((int)GameEventID.SYSTEM_LOADSCENECOMPELETE, OnLoadSceneCompelete);

            m_UserDataPool.Clear();
            m_NPCDataPool.Clear();
            m_PetDataPool.Clear();
        }
Exemple #2
0
    void ReleaseFontParent()
    {
        int num = transform.childCount;
        List <Transform> transList = new List <Transform>();

        for (int i = 0; i < num; i++)
        {
            Transform t = transform.GetChild(i);
            if (t.name != m_strFlyroot)
            {
                if (t.childCount == 0)
                {
                    transList.Add(t);
                }
            }
        }
        for (int i = 0; i < transList.Count; i++)
        {
            Transform t = transList[i];
            DestroyImmediate(t.gameObject);
        }
        transList.Clear();
        m_posRootPool.Clear();
    }