Пример #1
0
        private void TweenFinishCallBack()
        {
            if (ShowAwards != null && ShowAwards.Count > 0)
            {
                LTPartnerDataManager.Instance.InitPartnerData();
                Messenger.Raise(Hotfix_LT.EventName.InventoryEvent);
            }

            //仅仅调用物品获得的系统消息提示,飘字提示干掉
            if (mItemDataList != null)
            {
                GameUtils.ShowAwardMsgOnlySys(mItemDataList);
            }

            if (mNextItemDataQueue != null && mNextItemDataQueue.Count > 0)
            {
                curScrollRow = 1;
                StopAllCoroutines();
                mItemDataList = mNextItemDataQueue.Dequeue();
                ProcessItemData();
                InitUI();
                return;
            }

            isPlayAnimFinished = true;
            ClickTips.gameObject.CustomSetActive(!showBtn);
            ClickBtn.CustomSetActive(showBtn);

            if (showBtn)
            {
                NegativeLabel.text        = NegativeDesc;
                PositiveLabel.text        = PositiveDesc;
                PositiveSprite.spriteName = BalanceResourceUtil.GetResIcon(mCostType, 0);
                PositiveCostLabel.text    = mCostNum.ToString();
                PositiveCostLabel.color   = BalanceResourceUtil.GetUserDiamond() >= mCostNum ? LT.Hotfix.Utility.ColorUtility.WhiteColor : LT.Hotfix.Utility.ColorUtility.RedColor;
            }

            if (mItemDataList.Count >= 11)
            {
                PlaceholderWidget.GetComponent <BoxCollider>().enabled = true;
            }

            if (row == 1)
            {
                ScrollVew.verticalScrollBar.value = 0.5f;
            }
        }