public override AssetRequest <TAsset> LoadAsync <TAsset>(string deviceList, ref ContentManifest.AssetEntry entry, AssetLoadedHandler <TAsset> handler = null) { Resources.Load <TextAsset>(entry.Key); ResourceRequest unityRequest = Resources.LoadAsync <TextAsset>(entry.Key); AssetRequestWrapper <TAsset> request = new AssetRequestWrapper <TAsset>(null); AsyncAssetRequest <TAsset> asyncAssetRequest = new AsyncAssetRequest <TAsset>(entry.Key, request); CoroutineRunner.StartPersistent(waitForTextAssetToLoad(entry.Key, unityRequest, asyncAssetRequest), this, "test"); return(asyncAssetRequest); }
public AsyncAssetRequest(string key, AssetRequestWrapper <TAsset> request) : base(key, new CoroutineReturn[1] { request }) { }