Exemplo n.º 1
0
    public static CAssetFileLoader Load(string path, CAssetFileBridgeDelegate assetFileLoadedCallback = null)
    {
        CLoaderDelgate realcallback = null;
        if (assetFileLoadedCallback != null)
        {
            realcallback = (isOk, obj) => assetFileLoadedCallback(isOk, obj as UnityEngine.Object);
        }

        return AutoNew<CAssetFileLoader>(path, realcallback);
    }
Exemplo n.º 2
0
    public static KAssetFileLoader Load(string path, CAssetFileBridgeDelegate assetFileLoadedCallback = null, KAssetBundleLoaderMode loaderMode = KAssetBundleLoaderMode.Default)
    {
        CLoaderDelgate realcallback = null;
        if (assetFileLoadedCallback != null)
        {
            realcallback = (isOk, obj) => assetFileLoadedCallback(isOk, obj as UnityEngine.Object);
        }

        return AutoNew<KAssetFileLoader>(path, realcallback, false, loaderMode);
    }
Exemplo n.º 3
0
    public static CAssetFileLoader Load(string path, CAssetFileBridgeDelegate assetFileLoadedCallback = null)
    {
        CLoaderDelgate realcallback = null;

        if (assetFileLoadedCallback != null)
        {
            realcallback = (isOk, obj) => assetFileLoadedCallback(isOk, obj as UnityEngine.Object);
        }

        return(AutoNew <CAssetFileLoader>(path, realcallback));
    }
Exemplo n.º 4
0
    public static KAssetFileLoader Load(string path, CAssetFileBridgeDelegate assetFileLoadedCallback = null, KAssetBundleLoaderMode loaderMode = KAssetBundleLoaderMode.Default)
    {
        CLoaderDelgate realcallback = null;

        if (assetFileLoadedCallback != null)
        {
            realcallback = (isOk, obj) => assetFileLoadedCallback(isOk, obj as UnityEngine.Object);
        }

        return(AutoNew <KAssetFileLoader>(path, realcallback, false, loaderMode));
    }