void Init() { System.Action <bool> updateFinish = delegate(bool result) { UIWindowUpdate.Close(); UIWindowFirstLoading.Show(); Debug.Log("GameCenter.Init:检查更新结束"); InitResManager(); }; if (SystemConfig.Instance.IsAutoUpdate) { UIWindowUpdate.Show(); // UIManager.Instance.OpenWindow("PanelUpdate"); //VersionManager.Instance.UpdateGame(updateFinish); UIWindowFirstLoading.Hide(); Debug.Log("GameCenter.Init:开始检查更新"); VersionManager.Instance.UpdateGame(updateFinish); } else { UIWindowUpdate.Close(); UIWindowFirstLoading.Show(); InitResManager(); } Debug.Log("GameCenter.Init"); }
static int Show(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); UIWindowFirstLoading.Show(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }