// Destroys Phonon Manager. public void Destroy() { --referenceCount; if (referenceCount == 0) { audioEngineState.Destroy(); gameEngineState.Destroy(); componentCache.Destroy(); } }
// Destroys Phonon Manager. public void Destroy() { --referenceCount; if (referenceCount == 0) { if (audioEngineState != null) { audioEngineState.Destroy(); audioEngineState = null; } gameEngineState.Destroy(); componentCache.Destroy(); } }