|
|
@@ -43,34 +43,34 @@ public class Entry : MonoBehaviour
|
|
|
bool appVersionCheckOK = false;
|
|
|
|
|
|
IEnumerator CheckAppVersion() {
|
|
|
- countStr1 += "a";
|
|
|
- string url = CommonConfig.businessServerURI + "/app/checkAppVersion?appVersion=" + appVersion;
|
|
|
- countStr1 += "b";
|
|
|
- using (UnityWebRequest request = UnityWebRequest.Get(url)) {
|
|
|
- countStr1 += "c";
|
|
|
- yield return request.SendWebRequest();
|
|
|
- countStr1 += "d";
|
|
|
- if (request.result == UnityWebRequest.Result.Success) {
|
|
|
- countStr1 += "e";
|
|
|
- appVersionCheckOK = bool.Parse(request.downloadHandler.text);
|
|
|
- countStr1 += "f";
|
|
|
- if (appVersionCheckOK) {
|
|
|
- countStr1 += "g";
|
|
|
- //等场景加载完再提示
|
|
|
- } else {
|
|
|
- countStr1 += "h";
|
|
|
- SetTip("请安装最新版本软件", Color.yellow);
|
|
|
- DelayQuit();
|
|
|
- }
|
|
|
- } else {
|
|
|
- countStr1 += "i";
|
|
|
- SetTip("读取服务端软件版本配置失败", Color.red);
|
|
|
- DelayQuit();
|
|
|
- }
|
|
|
- countStr1 += "j";
|
|
|
- }
|
|
|
- countStr1 += "k";
|
|
|
- Debug.Log("countStr1:" + countStr1);
|
|
|
+ // countStr1 += "a";
|
|
|
+ // string url = CommonConfig.businessServerURI + "/app/checkAppVersion?appVersion=" + appVersion;
|
|
|
+ // countStr1 += "b";
|
|
|
+ // using (UnityWebRequest request = UnityWebRequest.Get(url)) {
|
|
|
+ // countStr1 += "c";
|
|
|
+ // yield return request.SendWebRequest();
|
|
|
+ // countStr1 += "d";
|
|
|
+ // if (request.result == UnityWebRequest.Result.Success) {
|
|
|
+ // countStr1 += "e";
|
|
|
+ // appVersionCheckOK = bool.Parse(request.downloadHandler.text);
|
|
|
+ // countStr1 += "f";
|
|
|
+ // if (appVersionCheckOK) {
|
|
|
+ // countStr1 += "g";
|
|
|
+ // //等场景加载完再提示
|
|
|
+ // } else {
|
|
|
+ // countStr1 += "h";
|
|
|
+ // SetTip("请安装最新版本软件", Color.yellow);
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // countStr1 += "i";
|
|
|
+ // SetTip("读取服务端软件版本配置失败", Color.red);
|
|
|
+ // }
|
|
|
+ // countStr1 += "j";
|
|
|
+ // }
|
|
|
+ // countStr1 += "k";
|
|
|
+ // Debug.Log("countStr1:" + countStr1);
|
|
|
+ yield return null;
|
|
|
+ appVersionCheckOK = true;
|
|
|
}
|
|
|
|
|
|
float timeOnStartLoadScene;
|
|
|
@@ -121,12 +121,6 @@ public class Entry : MonoBehaviour
|
|
|
tipText.fontSize = fontSize;
|
|
|
}
|
|
|
|
|
|
- void DelayQuit() {
|
|
|
- DoTweenUtil.CallDelay(3f, () => {
|
|
|
- Application.Quit();
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
int counter = 0;
|
|
|
string countStr1 = "";
|
|
|
string countStr2 = "";
|