public static void Block_DownNewClientVersion(string url) { #if UNITY_ANDROID string msg = StringTable.GetString("need_ver_update"); SDKMgr.Instance.AndroidObj.CallStatic("_DownloadNewClient", msg, RuntimeInfo.GetTitle(), url); #elif UNITY_IOS _DownloadNewClient("", RuntimeInfo.GetTitle(), url); #elif UNITY_STANDALONE_WIN string msg = StringTable.GetString("need_ver_update"); Resolution.SwitchFullscreen(); MessageBox(DllTest.WinPtr, msg, RuntimeInfo.GetTitle(), 1); SceneMain.Instance.Shutdown(); #endif }
public static void Block_ShowMsg(string msgid, ushort code, bool bclose = false) { string msg = StringTable.GetString(msgid); if (code != 0) { msg += " ErrCode:" + code.ToString(); } #if UNITY_ANDROID SDKMgr.Instance.AndroidObj.CallStatic("_ShowMsgAndQuit", msg, RuntimeInfo.GetTitle(), bclose ? "close" : "none"); #elif UNITY_IOS _ShowMsgAndQuit(msg, RuntimeInfo.GetTitle(), bclose ? "close" : "none"); #elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN MessageBox(DllTest.WinPtr, msg, RuntimeInfo.GetTitle(), 0); if (bclose) { SceneMain.Instance.Shutdown(); } #endif }