public void CloseSingleton() { #if LOG_MEMORY this.StopLogMemoryInfo(); #endif// LOG_MEMORY var newDict = new Dictionary <string, Action>(this.extraCloseEvents); this.extraCloseEvents.Clear(); foreach (var call in newDict.Values) { if (null != call) { call(); } } Present.Close(); Asset.Close(); Observer.Close(); Storage.Close(); Storage.Logger -= this.OnStorageLog; Preference.Close(); Resources.UnloadUnusedAssets(); }