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, "")); }
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); }
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, "")); } }
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); }