public override IEnumerator LoadAsync(string objName, System.Type type, ObjectOut output) { if (m_Assetbundle && type != null) { var req = m_Assetbundle.LoadAssetAsync(objName, type); while (!req.isDone) { yield return(null); } output.loadedObj = req.asset; } }
public abstract IEnumerator LoadAsync(string assetName, System.Type type, ObjectOut output);
public override IEnumerator LoadAsync(string assetName, System.Type type, ObjectOut output) { yield return(null); output.loadedObj = Load(assetName, type); }