Exemple #1
0
        public static void AddDown(THttpDown down)
        {
            string text  = down.url;
            string text2 = down.Tag;
            bool   flag  = THttpDown.IsDown(text, text2);

            if (flag)
            {
                Debug.Log(text + "正在下载中,请不 要重复下载!");
            }
            else
            {
                THttpDown.LoadingDown.Add(down);
            }
        }
Exemple #2
0
        public static THttpDown DoGet(string url, CallBackArg <THttpDown> callback)
        {
            bool      flag = THttpDown.IsDown(url, "");
            THttpDown result;

            if (flag)
            {
                Debug.Log(url + "正在下载中,请不 要重复下载!");
                result = null;
            }
            else
            {
                THttpDown hNHttpDwon = new THttpDown(url, callback);
                THttpDown.AddDown(hNHttpDwon);
                result = hNHttpDwon;
            }
            return(result);
        }