Beispiel #1
0
 public void FireEvent()
 {
     if (onComplete != null)
     {
         var handler = onComplete;
         onComplete = null;
         handler(bundleInfo);
     }
 }
Beispiel #2
0
 private void RequestAbInfoComplete(AssetBundleInfo abInfo)
 {
     if (onAbInfoComplete != null)
     {
         var handler = onAbInfoComplete;
         onAbInfoComplete = null;
         handler(abInfo);
     }
 }
Beispiel #3
0
 protected virtual void Error()
 {
     if (this.onComplete != null)
     {
         AssetBundleManager.LoadAssetCompleteHandler loadAssetCompleteHandler = this.onComplete;
         this.onComplete = null;
         loadAssetCompleteHandler(this.bundleInfo);
     }
     this.bundleManager.LoadError(this);
 }
 protected virtual void Error()
 {
     if (onComplete != null)
     {
         var handler = onComplete;
         onComplete = null;
         handler(bundleInfo);
     }
     bundleManager.LoadError(this);
 }
Beispiel #5
0
 private void BoostUI()
 {
     AssetBundleManager.LoadAssetCompleteHandler handler = delegate(AssetBundleInfo abi) {
         GameObject gameObj = GameObject.Instantiate(abi.mainObject) as GameObject;
         DontDestroyOnLoad(gameObj);
         UIManager.Instance.UIRootGameObj = gameObj;
         ViewPropertyDefinition.Init();
         BoostAfterUI();
     };
     AssetBundleManager.Instance.Load(AssetPathDefinition.uiRoot, handler);
 }