public void Dispose() { if (audio != null) { audio.Dispose(); audio = null; } if (renderer != null) { renderer.Dispose(); renderer = null; } if (resource != null) { resource.Dispose(); resource = null; } if (window != null) { window.Dispose(); window = null; } }
public void Dispose() { if (userInput != null) { userInput.Dispose(); userInput = null; } if (music != null) { music.Dispose(); music = null; } if (sound != null) { sound.Dispose(); sound = null; } if (renderer != null) { renderer.Dispose(); renderer = null; } if (resource != null) { resource.Dispose(); resource = null; } if (window != null) { window.Dispose(); window = null; } }