Beispiel #1
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="bundleName">ab标签</param>
    /// <param name="tmpFinish">完成时回调</param>
    /// <param name="tmpProgress">加载时每帧回调</param>
    public IABLoader(string bundleName, LoadFinish tmpFinish = null, LoadProgrecess tmpProgress = null)
    {
        this.bundleName              = bundleName;
        this.commonBundlePath        = IPathTool.GetWWWAssetBundlePath() + "/" + bundleName;
        this.commonResLoaderProgress = 0;
        this.abResLoader             = null;

        this.loadProgrecess = tmpProgress;
        this.loadFinish     = tmpFinish;
    }
Beispiel #2
0
 /// <summary>
 /// 设置bundle
 /// </summary>
 /// <param name="bundleName"></param>
 public void SetBundleName(string bundleName)
 {
     this.bundleName       = bundleName;
     this.commonBundlePath = IPathTool.GetWWWAssetBundlePath() + "/" + bundleName;
 }