protected override void OnDestroy() { base.OnDestroy(); if (mChildren != null) { foreach (CaelumBase element in mChildren) element.Dispose(); mChildren.Clear(); } SkyColorModel.Dispose(); if(UniversalClock.Instance != null) UniversalClock.Instance.Dispose(); mChildren = null; mInstance = null; }
// Methods -------------------------------------------------------------------- public CaelumManager() { mInstance = this; }