public void FireEvent() { if (onComplete != null) { var handler = onComplete; onComplete = null; handler(bundleInfo); } }
private void RequestAbInfoComplete(AssetBundleInfo abInfo) { if (onAbInfoComplete != null) { var handler = onAbInfoComplete; onAbInfoComplete = null; handler(abInfo); } }
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); }
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); }