void Start() { ConfigDat.ConfigStart(); text.text = ConfigDat.URL; Communications communicationsScript = (GameObject.FindGameObjectWithTag("AppPanel")).AddComponent <Communications>(); PreviewResponseDisplay displayPreviewResponse = (GameObject.FindGameObjectWithTag("AppPanel")).AddComponent <PreviewResponseDisplay>(); StartCoroutine(PreviewRequestManager(communicationsScript)); StartCoroutine(PreviewResponseDisplay.PollPreviewResponseChange());; }
void CheckCallback(WWW p_www) { Debug.Log(p_www.text); if (p_www.error != null) { //CheckConfig(); return; } JsonData t_jd = JsonMapper.ToObject(p_www.text); ConfigDat[] t_data = new ConfigDat[t_jd.Count]; for (int i = 0; i < t_jd.Count; i++) { t_data[i] = new ConfigDat(t_jd[i]); if (!t_data[i].Compare(ConfigUpdate.configPath)) { _updateList.Add(t_data[i]); } } updateCount = _updateList.Count; Debug.Log("需要更新的配置表数量::" + _updateList.Count); UpdateConfig(); }
public static void ConfigStart() { var configDat = new ConfigDat(); }