Пример #1
0
        // Destroys Phonon Manager.
        public void Destroy()
        {
            --referenceCount;

            if (referenceCount == 0)
            {
                audioEngineState.Destroy();
                gameEngineState.Destroy();
                componentCache.Destroy();
            }
        }
Пример #2
0
        // Destroys Phonon Manager.
        public void Destroy()
        {
            --referenceCount;

            if (referenceCount == 0)
            {
                if (audioEngineState != null)
                {
                    audioEngineState.Destroy();
                    audioEngineState = null;
                }

                gameEngineState.Destroy();
                componentCache.Destroy();
            }
        }