/// <summary> /// 加载预制体(异步) /// </summary> public void LoadPrefab(PrefabInfo info, Transform parent, HTFAction <float> loadingAction, HTFAction <GameObject> loadDoneAction, bool isUI = false) { StartCoroutine(LoadCoroutine(info, loadingAction, loadDoneAction, true, parent, isUI)); }
/// <summary> /// 加载预制体(异步) /// </summary> /// <param name="info">预制体配置信息</param> /// <param name="parent">预制体的预设父物体</param> /// <param name="loadingAction">预制体加载中回调</param> /// <param name="loadDoneAction">预制体加载完成回调</param> /// <param name="isUI">预制体是否是UI</param> /// <returns>加载协程</returns> public Coroutine LoadPrefab(PrefabInfo info, Transform parent, HTFAction <float> loadingAction = null, HTFAction <GameObject> loadDoneAction = null, bool isUI = false) { return(Main.Current.StartCoroutine(_helper.LoadAssetAsync(info, loadingAction, loadDoneAction, true, parent, isUI))); }