Exemple #1
0
        public void Close()
        {
            Utility.TimerAxis.Instance().KillTimer(AudioManager.AUDIO_TIME, this);

            if (m_UIRoot != null)
            {
                GameObject.DestroyObject(m_UIRoot);
                m_UIRoot = null;
            }
        }
Exemple #2
0
        public void Release()
        {
            if (m_res != null)
            {
                m_res.Release(); // 释放资源引用
            }

            if (m_musicSource != null)
            {
                GameObject.DestroyObject(m_musicSource);
            }
        }