Example #1
0
 /// <summary>
 /// 异步加载Prefab并且实例化
 /// </summary>
 public void LoadPrefabAsyncAndInstance(ResType type, string name, AssetType assetType, Action <GameObject> CallBack)
 {
     _resMgr.LoadAssetAsync <GameObject>(type, name, assetType, (obj) =>
     {
         CallBack?.Invoke(GetObject <GameObject>(obj));
     });
 }