public static void check() //检查新版本和网络连接 { WWW web = new WWW("http://central.holoworld.win/Version.html"); //检测版本号的地址 if (web.error != null) { ShowMessage(Language.lang.notconnecttoserver); } while (!web.isDone) { System.Threading.Thread.Sleep(10); } string result = web.text; Debug.Log("check version: " + result.Contains(version)); if (result.Contains(version)) { SoundsControl.playText(Language.lang.welcome); if (GetString("id") == "-1") { ShowMessage(Language.lang.needlogin); } } else { SoundsControl.playText(Language.lang.needup); ShowMessage(Language.lang.newvirsonavaliavle); } }
public void read() { SoundsControl.playText(info); }