Пример #1
0
        public override void Destroy()
        {
            base.Destroy();

            m_highwayView.Dispose();
            m_background.Dispose();
            m_resources.Dispose();

            m_audioController.Stop();
            m_audioController.Dispose();
        }
Пример #2
0
        public override void Destroy()
        {
            base.Destroy();

            m_highwayView.Dispose();
            m_background.Dispose();
            m_resources.Dispose();

            if (m_debugOverlay != null)
            {
                Host.RemoveOverlay(m_debugOverlay);
                m_debugOverlay = null;
            }

            m_audioController?.Stop();
            m_audioController?.Dispose();
        }