public void PreloadResourceAssetAsync(string path, Action onLoaded, BAsyncOper oper) { LoadResourceAssetAsync(path, typeof(UnityEngine.Object), (loadedObj) => { if (onLoaded != null) { onLoaded(); } }, oper); }
public void LoadResourceAssetAsync(string resPath, Type type, Action <UnityEngine.Object> onLoaded, BAsyncOper oper) { XResource.LoadAsync(resPath, type, onLoaded, oper); }
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); }