Exemple #1
0
 public void PreloadResourceAssetAsync(string path, Action onLoaded, BAsyncOper oper)
 {
     LoadResourceAssetAsync(path, typeof(UnityEngine.Object), (loadedObj) =>
     {
         if (onLoaded != null)
         {
             onLoaded();
         }
     }, oper);
 }
Exemple #2
0
 public void LoadResourceAssetAsync(string resPath, Type type, Action <UnityEngine.Object> onLoaded, BAsyncOper oper)
 {
     XResource.LoadAsync(resPath, type, onLoaded, oper);
 }
Exemple #3
0
 public void AllocGameObjectAsync(string resPath, Action <GameObject> onLoaded, Transform parent, Vector3 localPos,
                                  Quaternion localRot, bool initEnable, BAsyncOper oper)
 {
     XResource.AllocOrNewInstanceGoAsync(resPath, onLoaded, parent, true, localPos, localRot, oper, initEnable);
 }