Exemplo n.º 1
0
        public void ReadFileBytes(string noticeKey, string fileUrl, float timeoutSec, WWWUrlRstBytesDel del, LuaFunction lua)
        {
            mType           = WWWType.readBytes;
            mUrlRstBytesDel = del;
            setLuaCallback(lua);
            mTimeoutSec = timeoutSec;
            NoticeKey   = noticeKey;

            mList.Clear();
            mList.Add(new WWWInfo(fileUrl, ""));
        }
Exemplo n.º 2
0
        public static WWWTO ReadFileBytes(string fileUrl, WWWUrlRstBytesDel del, LuaFunction lua)
        {
            WWWTO www = new WWWTO();

            www.mType           = WWWType.readBytes;
            www.mUrlRstBytesDel = del;
            www._setLuaCallback(lua);

            www.mList.Clear();
            www.mList.Add(new WWWInfo(fileUrl, ""));

            return(www);
        }
Exemplo n.º 3
0
        public void ReadFirstExistsBytes(string noticeKey, List <string> files, float timeoutSec, WWWUrlRstBytesDel del, LuaFunction lua)
        {
            mType           = WWWType.readBytes;
            mUrlRstBytesDel = del;
            setLuaCallback(lua);
            mTimeoutSec = timeoutSec;
            NoticeKey   = noticeKey;

            mList.Clear();
            for (int i = 0; i < files.Count; i++)
            {
                string fileUrl = files[i];
                mList.Add(new WWWInfo(fileUrl, ""));
            }
        }
Exemplo n.º 4
0
        public static WWWTO ReadFirstExistsBytes(List <string> files, WWWUrlRstBytesDel del, LuaFunction lua)
        {
            WWWTO www = new WWWTO();

            www.mType           = WWWType.readBytes;
            www.mUrlRstBytesDel = del;
            www._setLuaCallback(lua);

            www.mList.Clear();
            for (int i = 0; i < files.Count; i++)
            {
                string fileUrl = files[i];
                www.mList.Add(new WWWInfo(fileUrl, ""));
            }

            return(www);
        }