DestroyChilds() public static method

public static DestroyChilds ( Transform parentTransform ) : void
parentTransform UnityEngine.Transform
return void
 private void ClearList()
 {
     Logger.Log("Clear histroy List");
     mLimit = 0;
     Resizer.DestroyChilds(mHistoryContainer.transform);
     mHistoryContainer.GetComponent <RectTransform>().anchoredPosition = new Vector3(0, 0);
     isRefresh = true;
 }
        /// <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);
        }
        public void ShowRedeemCoupon()
        {
            currentActive = ActiveScreen.REDEEM_COUPONS;
            GameObject screenRedeemCoupons = Instantiate(Resources.Load(PREFAB_SCREEN_REDEEM_COUPON)) as GameObject;

            // clear container
            Resizer.DestroyChilds(mainScreenContainer.transform);
            screenRedeemCoupons.transform.SetParent(mainScreenContainer.transform);
            screenRedeemCoupons.GetComponent <RectTransform>().anchoredPosition = new Vector2(0, 0);
            Resizer.ResizeToParrent(screenRedeemCoupons);
            mainScreenContainer.GetComponentInParent <ScrollRect> ().content = screenRedeemCoupons.GetComponent <RectTransform> ();
            _couponController = screenRedeemCoupons.GetComponent <RedeemCouponViewController>();
            _couponController.InitScreen(base.Utils);
            _couponController._btnApply.onClick.AddListener(delegate
            {
                CouponApplyClick(_couponController.GetCode());
            });
        }
 protected override void SetLoading(bool isLoading)
 {
     if (!isMainScreenShowed)
     {
         if (isLoading)
         {
             mainScreen.SetActive(false);
         }
         else
         {
             mainScreen.SetActive(true);
             isMainScreenShowed = true;
         }
     }
     else
     {
         if (isLoading)
         {
             Resizer.DestroyChilds(mainScreenContainer.transform);
         }
     }
     progressBar.SetLoading(isLoading);
 }
        protected override void PaymentManagerRecieved(XsollaSavedPaymentMethods pResult, bool pAddState)
        {
            if (_SavedPaymentController == null)
            {
                Resizer.DestroyChilds(mainScreenContainer.transform);
                GameObject paymentManager = Instantiate(Resources.Load(PREFAB_SCREEN_PAYMENT_MANAGER)) as GameObject;
                _SavedPaymentController = paymentManager.GetComponent <PaymentManagerController>();
                _SavedPaymentController.setOnCloseMethod(() =>
                {
                    //ShowGoodsShop();
                    //LoadGoodsGroups();
                    NavMenuClick(RadioButton.RadioType.SCREEN_GOODS);
                });
                paymentManager.transform.SetParent(mainScreenContainer.transform);
                paymentManager.GetComponent <RectTransform>().anchoredPosition = new Vector2(0, 0);
                Resizer.ResizeToParrent(paymentManager);
                currentActive = ActiveScreen.PAYMENT_MANAGER;
            }

            SetLoading(false);
            // Remove purchase part
            Restart();
            _SavedPaymentController.initScreen(Utils, pResult, AddPaymentAccount, pAddState);
        }