示例#1
0
    public void Update()
    {
        if (HttpCallBackList != null)
        {
            while (HttpCallBackList.Count > 0)
            {
                HttpCallBackList[0].Invoke();
                HttpCallBackList.RemoveAt(0);
            }
        }

        if (HttpDownLoadList != null)
        {
            while (HttpDownLoadList.Count > 0 && !downLoad)
            {
                downLoad    = true;
                curDownLoad = HttpDownLoadList[0];
                HttpDownLoadList.RemoveAt(0);
                curDownLoad.Invoke();
            }
        }

        if (HttpUpLoadList != null)
        {
            while (HttpUpLoadList.Count > 0 && !upLoad)
            {
                upLoad    = true;
                curUpLoad = HttpUpLoadList[0];
                HttpUpLoadList.RemoveAt(0);
                curUpLoad.Invoke();
            }
        }
    }