示例#1
0
    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());;
    }
示例#2
0
    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();
    }
示例#3
0
 public static void ConfigStart()
 {
     var configDat = new ConfigDat();
 }