void OnDestroy() { if (container != null) { if (!Application.isPlaying) EMRenderSupport.Remove(this); if (_ui != null) { _ui.Dispose(); _ui = null; } container.Dispose(); container = null; } _renders = null; }