Beispiel #1
0
        public override void Fill(LTPartnerData itemData)
        {
            if (itemData == null)
            {
                Clean();
                return;
            }
            tplId = itemData.HeroStat.id;
            Hotfix_LT.Data.HeroInfoTemplate m_data = itemData.HeroInfo;
            MainIcon.spriteName = m_data.icon;
            if (m_data.char_type == Hotfix_LT.Data.eRoleAttr.None)
            {
                QualityIcon.gameObject.CustomSetActive(false);
            }
            else
            {
                QualityIcon.spriteName = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[m_data.char_type];
                HotfixCreateFX.ShowCharTypeFX(charFx, efClip, QualityIcon.transform, (PartnerGrade)m_data.role_grade, (Hotfix_LT.Data.eRoleAttr)m_data.char_type);
            }

            GradeIcon.spriteName = UIItemLvlDataLookup.LvlToStr((m_data.role_grade + 1).ToString());
            FrameBG.color        = UIItemLvlDataLookup.GetItemFrameBGColor((m_data.role_grade + 1).ToString());
            StarController.SetSrarList(itemData.Star, itemData.IsAwaken);

            BG.color = (LTBountyTaskSelectController.Target != tplId) ? new Color(213f / 255f, 223f / 255f, 232f / 255f) : new Color(125f / 255f, 202f / 255f, 1f);

            mDMono.gameObject.CustomSetActive(true);
        }
Beispiel #2
0
        /// <summary>
        /// 初始化收益显示
        /// </summary>
        public void SetShowInfo()
        {
            int prelevel = maxLevel;

            DataLookupsCache.Instance.SearchIntByID("userCampaignStatus.challengeChapters.bigFloor", out int cacheLevel);
            maxLevel = cacheLevel > maxLevel ? cacheLevel : maxLevel;
            if (maxLevel == 0 || maxLevel > prelevel)
            {
                maxfloor  = Hotfix_LT.Data.SceneTemplateManager.Instance.GetMaxLostChallengeChapterId();
                maxLevel += 1;
                if (maxfloor < maxLevel)
                {
                    maxLevel = maxfloor;
                }
                levelLabel.text          = maxLevel.ToString();
                curReward                = Hotfix_LT.Data.SceneTemplateManager.Instance.GetLostChallengeReward(maxLevel);
                nextReward               = Hotfix_LT.Data.SceneTemplateManager.Instance.GetLostChallengeReward(maxLevel + 1);
                curQuality               = curReward.DropList[0] == null ? 1 : int.Parse(curReward.DropList[0].Substring(1, 1));
                nextQuality              = nextReward.DropList[0] == null ? 1 : int.Parse(nextReward.DropList[0].Substring(1, 1));
                curBGFrame.spriteName    = UIItemLvlDataLookup.GetItemFrameBGSprite(curQuality);
                curBGFrame.color         = LT.Hotfix.Utility.ColorUtility.QualityToFrameColor(curQuality);
                nextBGFrame.spriteName   = UIItemLvlDataLookup.GetItemFrameBGSprite(nextQuality);
                nextBGFrame.color        = LT.Hotfix.Utility.ColorUtility.QualityToFrameColor(nextQuality);
                curQuaLevel.spriteName   = UIItemLvlDataLookup.LvlToStr(curQuality.ToString());
                nextQuaLevel.spriteName  = UIItemLvlDataLookup.LvlToStr(nextQuality.ToString());
                curLayerRate.text        = string.Format("{0}{1}", (curReward.DropRate * 100).ToString("0"), "%");
                NextLayerRate.text       = string.Format("{0}{1}", (nextReward.DropRate * 100).ToString("0"), "%");
                curEquipIcon.spriteName  = LTPartnerEquipDataManager.Instance.GetEquipIconBuyTypeAndQua(showType, curQuality);
                nextEquipIcon.spriteName = LTPartnerEquipDataManager.Instance.GetEquipIconBuyTypeAndQua(showType, nextQuality);
                mDMono.GetComponent <TweenAlpha>().PlayForward();
            }
        }
Beispiel #3
0
        public override void OnLookupUpdate(string dataID, object value)
        {
            base.OnLookupUpdate(dataID, value);

            string spname     = string.Empty;
            var    upgrade_id = GetUpgradeId();

            if (upgrade_id != null)
            {
                //var item = EconemyTemplateManager.Instance.GetItem(upgrade_id);  TODOX
                //spname = UIItemLvlDataLookup.LvlToStr(item.QualityLevel.ToString());
            }
            else
            {
                string LvlName = mDL.GetDefaultLookupData <string>();
                spname = UIItemLvlDataLookup.LvlToStr(LvlName);
            }

            UISprite uiSprite = mDL.transform.GetComponent <UISprite>();

            if (uiSprite != null)
            {
                uiSprite.spriteName = spname;
            }
        }
Beispiel #4
0
 public void Fill(string iconname, string suiticon, int qualityLevel)
 {
     EquipIcon.spriteName      = iconname;
     EquipsuitIcon.spriteName  = suiticon;
     QualityLevel.spriteName   = UIItemLvlDataLookup.LvlToStr(qualityLevel.ToString());
     QualityFrameBg.spriteName = UIItemLvlDataLookup.GetItemFrameBGSprite(qualityLevel);
     QualityFrameBg.color      = UIItemLvlDataLookup.GetItemFrameBGColor(qualityLevel.ToString());
     EquipmentCell.CustomSetActive(true);
 }
Beispiel #5
0
 private void SetFrame(int quality)
 {
     Frame.spriteName = UIItemLvlDataLookup.LvlToStr(quality.ToString());
     if (quality == 7)
     {
         FrameBG.spriteName = "Ty_Quality_Xuancai_Di";
     }
     else
     {
         FrameBG.spriteName = "Ty_Di_2";
     }
     FrameBG.color = LT.Hotfix.Utility.ColorUtility.QualityToFrameColor(quality);
 }
Beispiel #6
0
        public override void SetMenuData(object param)
        {
            var itemInfo = param as GenericItemInfo;

            if (itemInfo != null)
            {
                curItemInfo = itemInfo;
                var inl = LTItemInfoTool.GetInfo(curItemInfo.EconomyId, LTShowItemType.TYPE_GAMINVENTORY);
                mIcon.spriteName    = inl.icon;
                mFrame.spriteName   = UIItemLvlDataLookup.LvlToStr(inl.quality);
                mFrameBG.spriteName = UIItemLvlDataLookup.GetItemFrameBGSprite(inl.quality);
                mFrameBG.color      = UIItemLvlDataLookup.GetItemFrameBGColor(inl.quality);
                mName.text          = inl.name;
                mTotalNum           = curItemInfo.Num;
                mCurNum             = mTotalNum;
                qualityLevel        = int.Parse(inl.quality);
                Show();

                var suitIcon = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetEquipSuit(curItemInfo.EconomyId);
                if (!string.IsNullOrEmpty(suitIcon))
                {
                    mEquipSuitIcon.gameObject.SetActive(true);
                    mEquipSuitIcon.spriteName = suitIcon;
                }
                else
                {
                    mEquipSuitIcon.gameObject.SetActive(false);
                }

                var grade = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGoodsGradeNum(curItemInfo.EconomyId);
                mboxGradeNumLab.gameObject.CustomSetActive(grade != 0);
                if (grade != 0)
                {
                    mboxGradeNumLab.text = string.Format("+{0}", grade);
                }
            }
        }
Beispiel #7
0
        public override void Fill(BaseEquipmentInfo itemData)
        {
            if (itemData == null || string.IsNullOrEmpty(itemData.ECid))
            {
                Data = null;
                mDMono.transform.GetChild(0).gameObject.CustomSetActive(false);
                RefreshTips();
                return;
            }
            else
            {
                if (Data == itemData)
                {
                    if (LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.LevelView)
                    {
                        if (LTPartnerEquipDataManager.Instance.UpLevelSelectList.Contains(Data.Eid))
                        {
                            IsSelect = true;
                            SelectBG.CustomSetActive(true);
                        }
                        else
                        {
                            IsSelect = false;
                            SelectBG.CustomSetActive(false);
                        }
                        if (isEquipUpItem)
                        {
                            delGoodsCount = LTPartnerEquipDataManager.Instance.getEquipUpItemNum(Data.ECid);
                            ShowGoodsCount();
                            BreakItemObj.CustomSetActive(true);
                        }
                        else
                        {
                            ItemMask.CustomSetActive(false);
                            BreakItemObj.CustomSetActive(false);
                        }
                    }

                    RefreshTips();
                    return;
                }

                Data          = itemData;
                isEquipUpItem = LTPartnerEquipDataManager.Instance.isEquipUpItem(Data.ECid);
                mDMono.transform.GetChild(0).gameObject.CustomSetActive(true);

                if (LTPartnerEquipMainController.instance != null && LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.LevelView &&
                    LTPartnerEquipDataManager.Instance.UpLevelSelectList.Contains(Data.Eid))
                {
                    IsSelect = true;
                    SelectBG.CustomSetActive(true);
                }
                else
                {
                    IsSelect = false;
                    SelectBG.CustomSetActive(false);
                }

                if (LockBG != null)
                {
                    LockBG.CustomSetActive(Data.isLock);
                }

                if (LTPartnerEquipMainController.instance != null && LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.SynthesisView)
                {
                    if (DressBG != null)
                    {
                        DressBG.CustomSetActive(Data.isDress);
                    }
                }
                else
                {
                    DressBG.CustomSetActive(false);
                }
            }
            EquipmentIcon.spriteName = Data.IconName;
            BGIcon.spriteName        = UIItemLvlDataLookup.LvlToStr(Data.QualityLevel.ToString());
            if (Data.QualityLevel == 7)
            {
                BG2Icon.spriteName = "Ty_Quality_Xuancai_Di";
            }
            else
            {
                BG2Icon.spriteName = "Ty_Di_2";
            }
            BG2Icon.color       = LT.Hotfix.Utility.ColorUtility.QualityToFrameColor(Data.QualityLevel);
            SuitIcon.spriteName = Data.SuitIcon;
            if (LevelLabel == null)
            {
                EB.Debug.LogError("LevelLabel Null");
            }
            LevelLabel.transform.GetChild(0).GetComponent <UISprite>().spriteName = UIItemLvlDataLookup.GetEquipLevelBGStr(Data.QualityLevel);
            if (Data.EquipLevel > 0)
            {
                LevelLabel.text = string.Format("+{0}", Data.EquipLevel);
                LevelLabel.gameObject.CustomSetActive(true);
            }
            else
            {
                LevelLabel.gameObject.CustomSetActive(false);
            }
            if (isEquipUpItem)
            {
                delGoodsCount = LTPartnerEquipDataManager.Instance.getEquipUpItemNum(Data.ECid);
                ShowGoodsCount();
                BreakItemObj.CustomSetActive(true);
            }
            else
            {
                ItemMask.CustomSetActive(false);
                BreakItemObj.CustomSetActive(false);
            }

            RefreshTips();
        }
Beispiel #8
0
        private void SetBagContentFunc()
        {
            TextBG.CustomSetActive(true);
            NumLabel.text   = EB.Localizer.GetString("ID_LABEL_NAME_HADE") + EB.Dot.Integer("num", BagItemData, 0).ToString();
            templateid      = EB.Dot.String("economy_id", BagItemData, null);
            Icon.spriteName = Hotfix_LT.Data.EconemyTemplateManager.GetItemIcon(templateid);
            var item = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetItem(templateid);

            LTUIUtil.SetText(NameLabel, item.Name);
            ItemContent.text = item.Desc;
            int quality_level = EB.Dot.Integer("qualityLevel", BagItemData, 0);

            ShowItemFX(quality_level);
            Border.spriteName = UIItemLvlDataLookup.LvlToStr(quality_level + "");
            if (quality_level == 7)
            {
                FrameBG.spriteName = "Ty_Quality_Xuancai_Di";
            }
            else
            {
                FrameBG.spriteName = "Ty_Di_2";
            }
            FrameBG.color = UIItemLvlDataLookup.GetItemFrameBGColor(quality_level + "");
            FrameBG.gameObject.CustomSetActive(true);
            string itemType = EB.Dot.String("system", BagItemData, null);

            mClipFlag.CustomSetActive(itemType == "HeroShard");
            mCompoundRequest.gameObject.GetComponent <UIButton>().tweenTarget = null;
            if (itemType == "Generic")
            {
                bool        IsCanUse = IsItemCanUse();
                Color       btnColor = IsCanUse ? Color.white : Color.magenta;
                UISprite    useBtn   = mCompoundRequest.gameObject.GetComponent <UISprite>();
                BoxCollider colider  = mCompoundRequest.gameObject.GetComponent <BoxCollider>();
                colider.enabled = IsCanUse;
                useBtn.color    = btnColor;
            }

            mEquipSuitIcon.gameObject.CustomSetActive(itemType == "Equipment");
            mEquipLevel.gameObject.CustomSetActive(itemType == "Equipment");
            if (itemType == "Equipment")
            {
                int equipLevel = EB.Dot.Integer("currentLevel", BagItemData, 1);
                if (equipLevel <= 0)
                {
                    mEquipLevel.gameObject.CustomSetActive(false);
                }
                else
                {
                    mEquipLevel.gameObject.CustomSetActive(true);
                    mEquipLevel.text         = mEuqipLevelShadow.text = "+" + equipLevel;
                    mEquipLevelBG.spriteName = UIItemLvlDataLookup.GetEquipLevelBGStr(quality_level);
                }
                mEquipSuitIcon.spriteName = Hotfix_LT.Data.EconemyTemplateManager.GetEquipSuitIcon(templateid);
            }

            string suitIcon = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetEquipSuit(templateid);

            if (!string.IsNullOrEmpty(suitIcon))
            {
                mEquipSuitIcon.gameObject.CustomSetActive(true);
                mEquipSuitIcon.spriteName = suitIcon;
            }

            int grade = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGoodsGradeNum(templateid);

            mboxGradeNumLab.gameObject.CustomSetActive(grade != 0);
            if (grade != 0)
            {
                mboxGradeNumLab.text = string.Format("+{0}", grade);
            }

            if (!(item is Hotfix_LT.Data.GeneralItemTemplate))
            {
                UseItem.CustomSetActive(false);
                CompoundItem.CustomSetActive(false);
            }
            else
            {
                var GeneralItem = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGeneral(templateid);
                if (GeneralItem.CanUse)
                {
                    if (GeneralItem.CompoundItem != null)
                    {
                        UseItem.CustomSetActive(false);
                        CompoundItem.CustomSetActive(true);
                    }
                    else
                    {
                        UseItem.CustomSetActive(true);
                        CompoundItem.CustomSetActive(false);
                    }
                }
                else
                {
                    UseItem.CustomSetActive(false);
                    CompoundItem.CustomSetActive(false);
                }
            }
            SourceItem.GetComponent <BoxCollider>().enabled = true;
            SourceItem.GetComponent <UISprite>().color      = Color.white;
            SourceItem.CustomSetActive(true);
            BtnGrid.Reposition();
        }
Beispiel #9
0
        public void Show()
        {
            string economyId = "";
            string unhave;
            int    num;

            if (!DataLookupsCache.Instance.SearchDataByID <string>("tooltip.unhave", out unhave, null))
            {
                if (!DataLookupsCache.Instance.SearchDataByID <string>("{" + m_TipTargetStr + "}.economy_id", out economyId, null))
                {
                    EB.Debug.LogError("SearchDataByID {0}.economy_id is null", m_TipTargetStr);
                    return;
                }
                m_InventoryId = InventoryId;
                if (!DataLookupsCache.Instance.SearchIntByID(m_InventoryId + ".num", out num, null))
                {
                    EB.Debug.LogError("SearchDataByID inventory_id==null");
                }
            }
            else
            {
                if (!DataLookupsCache.Instance.SearchDataByID <string>(m_TipTargetStr, out economyId, null))
                {
                    EB.Debug.LogError("SearchDataByID {0} is null", m_TipTargetStr);
                    return;
                }
                num = GameItemUtil.GetInventoryItemNum(economyId);
            }

            LTIconNameQuality inl = LTItemInfoTool.GetInfo(economyId, LTShowItemType.TYPE_GAMINVENTORY);

            m_Icon.spriteName    = inl.icon;
            m_Frame.spriteName   = UIItemLvlDataLookup.LvlToStr(inl.quality);
            m_FrameBG.spriteName = UIItemLvlDataLookup.GetItemFrameBGSprite(inl.quality);
            m_FrameBG.color      = UIItemLvlDataLookup.GetItemFrameBGColor(inl.quality);
            m_QualityLevel       = int.Parse(inl.quality);
            LTUIUtil.SetText(m_GoodsName, inl.name);
            var itemInfo = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGeneral(economyId);

            if (itemInfo != null)
            {
                m_ClipFlag.CustomSetActive(itemInfo.System == "HeroShard");
            }
            else
            {
                m_ClipFlag.CustomSetActive(false);
            }

            string equipSuitIconStr = Hotfix_LT.Data.EconemyTemplateManager.GetEquipSuitIcon(economyId);

            if (string.IsNullOrEmpty(equipSuitIconStr))
            {
                m_EquipSuitIcon.gameObject.CustomSetActive(false);

                string suitIcon = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetEquipSuit(economyId);
                if (!string.IsNullOrEmpty(suitIcon))
                {
                    m_EquipSuitIcon.gameObject.CustomSetActive(true);
                    m_EquipSuitIcon.spriteName = suitIcon;
                }
            }
            else
            {
                m_EquipSuitIcon.gameObject.CustomSetActive(true);
                m_EquipSuitIcon.spriteName = equipSuitIconStr;
            }

            int grade = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGoodsGradeNum(economyId);

            m_boxGradeNumLab.gameObject.CustomSetActive(grade != 0);
            if (grade != 0)
            {
                m_boxGradeNumLab.text = string.Format("+{0}", grade);
            }

            var item = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetItem(economyId);

            if (item.DropDatas.Count <= 0)
            {
                DropItemsRoot.gameObject.CustomSetActive(true);
                UpdateDrop(item);
            }
            else
            {
                DropItemsRoot.gameObject.CustomSetActive(true);
                UpdateDrop(item);
            }
            ItemInfo.InventoryId = m_InventoryId;
            ItemInfo.EconomyId   = economyId;
            ItemInfo.Num         = num;
            LTUIUtil.SetText(m_NumLabel, EB.Localizer.GetString("ID_LABEL_NAME_HADE") + num);

            //从伙伴进阶界面打开跳转界面需要做刷新伙伴进阶界面操作
            if (!string.IsNullOrEmpty(LTPartnerDataManager.Instance.itemID))
            {
                Hotfix_LT.Messenger.Raise(Hotfix_LT.EventName.OnPartnerUIRefresh, CultivateType.UpGrade);
            }

            IconParent.CustomSetActive(true);
        }
Beispiel #10
0
        private void UpdateUI()
        {
            if (null != ItemData)
            {
                mDMono.gameObject.GetComponent <BoxCollider>().enabled = true;
                string templateid    = EB.Dot.String(m_EconomyIDPropertyName, ItemData, "");
                int    num           = EB.Dot.Integer(m_NumPropertyName, ItemData, 0);
                int    quality_level = EB.Dot.Integer(m_QualityLevelPropertyName, ItemData, 0);

                m_Icon.spriteName        = Hotfix_LT.Data.EconemyTemplateManager.GetItemIcon(templateid);
                m_Type                   = EB.Dot.String(m_TypeName, ItemData, "");
                m_LevelBorder.spriteName = UIItemLvlDataLookup.LvlToStr(quality_level + "");
                if (quality_level == 7)
                {
                    m_FrameBG.spriteName = "Ty_Quality_Xuancai_Di";
                }
                else
                {
                    m_FrameBG.spriteName = "Ty_Di_2";
                }
                m_FrameBG.color = UIItemLvlDataLookup.GetItemFrameBGColor(quality_level + "");
                m_LevelBorder.gameObject.CustomSetActive(true);

                HotfixCreateFX.ShowItemQualityFX(mQualityFX, mEffectClip, mDMono.transform, quality_level);

                m_Flag.CustomSetActive(m_Type == "HeroShard");
                m_EquipSuitIcon.gameObject.CustomSetActive(m_Type == "Equipment");
                m_EquipLevel.gameObject.CustomSetActive(m_Type == "Equipment");

                if (m_Type == "Equipment")
                {
                    int equipLevel = EB.Dot.Integer(m_EquipLevelStr, ItemData, 1);
                    if (equipLevel <= 0)
                    {
                        m_EquipLevel.gameObject.CustomSetActive(false);
                    }
                    else
                    {
                        m_EquipLevel.gameObject.CustomSetActive(true);
                        m_EquipLevel.text         = m_EuqipLevelShadow.text = "+" + equipLevel;
                        m_EquipLevelBG.spriteName = UIItemLvlDataLookup.GetEquipLevelBGStr(quality_level);
                    }
                    m_EquipSuitIcon.spriteName = Hotfix_LT.Data.EconemyTemplateManager.GetEquipSuitIcon(templateid);
                }

                int grade = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGoodsGradeNum(templateid);
                m_boxGradeNumLab.gameObject.CustomSetActive(grade != 0);
                if (grade != 0)
                {
                    m_boxGradeNumLab.text = string.Format("+{0}", grade);
                }

                string suitIcon = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetEquipSuit(templateid);
                if (!string.IsNullOrEmpty(suitIcon))
                {
                    m_EquipSuitIcon.gameObject.CustomSetActive(true);
                    m_EquipSuitIcon.spriteName = suitIcon;
                }

                if (m_Count != null)
                {
                    if (num > 1)
                    {
                        m_Count.text = num + "";
                        m_Count.gameObject.CustomSetActive(true);
                    }
                    else
                    {
                        m_Count.gameObject.CustomSetActive(false);
                    }
                }
                string InventoryId = EB.Dot.String("inventory_id", ItemData, "");
                if (LTInventoryAllController._CurrentSelectCellId != null && LTInventoryAllController._CurrentSelectCellId.Contains(InventoryId))
                {
                    LTInventoryAllController._CurrentSelectCell = mDMono.transform.GetMonoILRComponentByClassPath <UIInventoryBagCellController>("Hotfix_LT.UI.UIInventoryBagCellController");
                    Border.CustomSetActive(true);
                }
                else
                {
                    Border.CustomSetActive(false);
                }

                //红点判断
                string eid = EB.Dot.String("economy_id", ItemData, null);
                if (eid != null)
                {
                    var GeneralItem = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetGeneral(eid);
                    RedPoint.CustomSetActive(GeneralItem != null && GeneralItem.CanUse && !LTMainHudManager.Instance.ItemsList.Contains(InventoryId));
                }
            }
            else
            {
                m_Icon.spriteName = "";
                m_LevelBorder.gameObject.CustomSetActive(false);
                m_Flag.CustomSetActive(false);
                m_EquipSuitIcon.gameObject.CustomSetActive(false);
                m_EquipLevel.gameObject.CustomSetActive(false);
                m_boxGradeNumLab.gameObject.CustomSetActive(false);
                mDMono.gameObject.GetComponent <BoxCollider>().enabled = false;
                if (m_Count != null)
                {
                    m_Count.gameObject.CustomSetActive(false);
                }
                RedPoint.CustomSetActive(false);
                Border.CustomSetActive(false);
                if (mQualityFX != null)
                {
                    mQualityFX.gameObject.CustomSetActive(false);
                }
                else
                {
                    if (mDMono.transform.Find("QualityFX") != null)
                    {
                        mQualityFX  = mDMono.transform.Find("QualityFX").GetComponent <ParticleSystemUIComponent>();
                        mEffectClip = mDMono.transform.Find("QualityFX").GetComponent <EffectClip>();
                        mQualityFX.gameObject.CustomSetActive(false);
                    }
                }
            }
        }