コード例 #1
0
ファイル: AssetBundleLoader.cs プロジェクト: clime57/Stars
 public void FireEvent()
 {
     if (onComplete != null)
     {
         var handler = onComplete;
         onComplete = null;
         handler(bundleInfo);
     }
 }
コード例 #2
0
ファイル: ResManager.cs プロジェクト: uurain/MoveSyncDemo
 private void RequestAbInfoComplete(AssetBundleInfo abInfo)
 {
     if (onAbInfoComplete != null)
     {
         var handler = onAbInfoComplete;
         onAbInfoComplete = null;
         handler(abInfo);
     }
 }
コード例 #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);
 }
コード例 #4
0
 protected virtual void Error()
 {
     if (onComplete != null)
     {
         var handler = onComplete;
         onComplete = null;
         handler(bundleInfo);
     }
     bundleManager.LoadError(this);
 }
コード例 #5
0
ファイル: Launcher.cs プロジェクト: jpsiyu/MotionBlur
 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);
 }