/// <summary> /// Shows the history. /// </summary> private void ShowHistory() { GameObject historyScreen = Instantiate(Resources.Load(PREFAB_SCREEN_HISTORY_USER)) as GameObject; HistoryController controller = historyScreen.GetComponent <HistoryController>(); controller.Init(Utils); // задаем родителя и заполняем Resizer.SetParentToFullScreen(historyScreen, mainScreenContainer); }
/// <summary> /// Shows the goods shop. /// </summary> private void ShowGoodsShop() { GameObject goodsShop = Instantiate(Resources.Load(PREFAB_SCREEN_GOODS_SHOP)) as GameObject; Resizer.DestroyChilds(mainScreenContainer.transform); ShopViewControllerRe controller = goodsShop.GetComponent <ShopViewControllerRe>(); controller.init(Utils); // задаем родителя и заполняем Resizer.SetParentToFullScreen(goodsShop, mainScreenContainer); // Выделяем элемент меню mNavMenuController.SelectRadioItem(RadioButton.RadioType.SCREEN_GOODS); }
/// <summary> /// Shows the price point shop. /// </summary> private void ShowPricePointShop() { GameObject pricePointShop = Instantiate(Resources.Load(PREFAB_SCREEN_PRICEPOINT_SHOP)) as GameObject; Resizer.DestroyChilds(mainScreenContainer.transform); PricePointShopControllerRe controller = pricePointShop.GetComponent <PricePointShopControllerRe>(); controller.SetProgressBarAction(delegate { progressBar.SetLoading(true); }, delegate { progressBar.SetLoading(false); }); controller.init(Utils); // задаем родителя и заполняем Resizer.SetParentToFullScreen(pricePointShop, mainScreenContainer); // Выделяем элемент меню mNavMenuController.SelectRadioItem(RadioButton.RadioType.SCREEN_PRICEPOINT); }
/// <summary> /// Shows the redeem coupon. /// </summary> public void ShowRedeemCoupon() { currentActive = ActiveScreen.REDEEM_COUPONS; GameObject screenRedeemCoupons = Instantiate(Resources.Load(PREFAB_SCREEN_REDEEM_COUPON)) as GameObject; Resizer.DestroyChilds(mainScreenContainer.transform); Resizer.SetParentToFullScreen(screenRedeemCoupons, mainScreenContainer); _couponController = screenRedeemCoupons.GetComponent <RedeemCouponViewController>(); _couponController.InitScreen(base.Utils); _couponController._btnApply.onClick.AddListener(delegate { CouponApplyClick(_couponController.GetCode()); }); }
/// <summary> /// Draws the subscriptions. /// </summary> private void DrawSubscriptions() { GameObject screenSubs = Instantiate(Resources.Load(PREFAB_SCREEN_SUBSCRIPTIONS)) as GameObject; Resizer.DestroyChilds(mainScreenContainer.transform); SubscriptionsViewController controller = screenSubs.GetComponent <SubscriptionsViewController>(); controller.init(Utils); // _subsController = screenSubs.GetComponent<SubscriptionsViewController>(); // _subsController.init(Utils); // задаем родителя и заполняем Resizer.SetParentToFullScreen(screenSubs, mainScreenContainer); // Выделяем элемент меню mNavMenuController.SelectRadioItem(RadioButton.RadioType.SCREEN_SUBSCRIPTION); }