public AirPlane(Transform tran, IUiResourcesLoader loader) { this.loader = loader; UIUtils.SetActive(tran, true); this.tran = tran; airPlane = tran.Find("airPlane"); airDrop = tran.Find("kongtouModel"); UIUtils.SetActive(airDrop, false); PreParedKTouSprite(); }
private void InitUiSubManager(IUiResourcesLoader loader) { var alertManager = UiCommon.AlertManager; if (loader == null) { return; } var bundle = AssetBundleConstant.Prefab_Hall_Common; var asset = "UICommonAlert"; loader.LoadAsync(bundle, asset, (obj) => { alertManager.SetStyle <AlertUIModel>(obj as GameObject); }); }