Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 public abstract IEnumerator LoadAsync(string assetName, System.Type type, ObjectOut output);
Esempio n. 3
0
            public override IEnumerator LoadAsync(string assetName, System.Type type, ObjectOut output)
            {
                yield return(null);

                output.loadedObj = Load(assetName, type);
            }