private static void OnUpdate() { Dictionary <string, WindowMediator.WindowCacheData> .Enumerator enumerator = WindowMediator.mCacheUIPanel.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, WindowMediator.WindowCacheData> current = enumerator.Current; WindowMediator.WindowCacheData data = current.Value; if (Facade.Instance.RetrieveMediator(data.name) == null) { KeyValuePair <string, WindowMediator.WindowCacheData> pair2 = enumerator.Current; if ((Time.realtimeSinceStartup - pair2.Value.lasttime) > 180f) { WindowMediator.RemoveCache(data.name); break; } } } }