private void Instance_HallVersionInfoEvent(int version) { string text = string.Format( "version info, local:{0} remote:{1}", GameApp.GameData.Version, GameVersion.Version2Str(version)); Logger.UI.Log(text); GameApp.Updater.RemoteVersion = version; if (GameApp.Updater.IsForceUpdate()) { text = string.Format( "发现新的版本:{0},准备开始更新。当前版本:{1}", GameVersion.Version2Str(version), GameApp.GameData.Version); GameApp.PopupMgr.Confirm("更新", text, delegate(MessageBoxResult style) { StartCoroutine(CheckUpdate()); }, 9999f); } else if (version != GameVersion.ProcessVersion(GameApp.GameData.Version)) { StartCoroutine(CheckUpdate()); } else { startTime = 0.0f; patching = false; } }