示例#1
0
    /// <summary>
    /// 提供加载功能
    /// </summary>
    /// <param name="sceneName"></param>
    /// <param name="bundelName"></param>
    /// <param name="progress"></param>
    public void LoadAsset(string sceneName, string bundelName, LoaderProgress progress)
    {
        if (!mABManagerDict.ContainsKey(sceneName))
        {
            ReadConfig(sceneName);
        }
        IABSceneManager iABSceneManager = mABManagerDict[sceneName];

        iABSceneManager.LoadAsset(bundelName, progress, LoadCallBack);
    }
    //提供加载功能
    public void LoadAsset(string sceneName, string bundleName, LoaderProgrecess progress)
    {
        if (!loadManager.ContainsKey(sceneName))
        {
            ReadConfiger(sceneName);
        }
        IABSceneManager tmpManager = loadManager[sceneName];

        tmpManager.LoadAsset(bundleName, progress, LoadCallBack);
    }
示例#3
0
    // 提供加载功能
    public void LoadAsset(string sceneName, string bundleName, LoadProgress loadProgress)
    {
        if (!sceneManagers.ContainsKey(sceneName))
        {
            ReadConfiger(sceneName);
        }

        // 加载指定包
        IABSceneManager sceneManager = sceneManagers[sceneName];

        sceneManager.LoadAsset(bundleName, loadProgress, OnLoadedCallBack);
    }