| 
					
				 | 
			
			
				@@ -36,9 +36,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnUpLv.onClick.Add(OnClickBtnUp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnCheckself.onClick.Add(OnClickCheckSelf); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnCheckother.onClick.Add(OnClickCheckOther); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnUpLvSpecial.onClick.Add(OnClickBtnUpSpecial); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listConsume.itemRenderer = RenderListStarConsumeItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,7 +61,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtName.text = skillCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_loaSkill.url = ResPathUtil.GetCardSkillPath(skillCfg.res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnUpLvSpecial.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnCheckother.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_btnCheckself.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,26 +85,14 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             costCurrency.m_txtNeed.text = skillLvCfg.costNum.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ComCostCurrency.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateComLv(_ui.m_comNextLv, skillLv + 1, "下一级"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ItemCfg item = ItemCfgArray.Instance.GetCfg(skillLvCfg.materiarsArr[0][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(item.subType == 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_listConsume.numItems = skillLvCfg.materiarsArr.Length + 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnUpLvSpecial.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnUpLv.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_listConsume.numItems = skillLvCfg.materiarsArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnUpLvSpecial.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnUpLv.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listConsume.numItems = skillLvCfg.materiarsArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void UpdateUpSkill() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (_effectUI1 != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_effectUI1 != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 EffectUIPool.Recycle(_effectUI1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _effectUI1 = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -125,59 +112,26 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ComStarConsume listItem = UI_ComStarConsume.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // int skillLv = SkillDataManager.Instance.GetSkillLv(_cardId, _skillId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // skillCfg = SkillDataManager.Instance.GetPassivitySkillCfg(_cardId, _skillId, skillLv); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(skillLvCfg.materiarsArr[index][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(ItemCfgArray.Instance.GetCfg(skillLvCfg.materiarsArr[0][0]).subType == 1 && index > skillLvCfg.materiarsArr.Length - 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemCfg item = ItemCfgArray.Instance.GetCfg(_cardId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int needCount = GeneralMaterialCfgArray.Instance.GetCfgByrarityAndlevel(item.rarity,_skillLv).materiarsArr[0][1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int id = GeneralMaterialCfgArray.Instance.GetCfgByrarityAndlevel(item.rarity, _skillLv).materiarsArr[0][0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                long hasCount = ItemDataManager.GetItemNum(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_txtNeedCount.text = needCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_txtHasCount.text = StringUtil.GetColorText(hasCount.ToString(), hasCount < needCount ? "#D27869" : "#716660"); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_btnPlus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemCfg item1 = ItemCfgArray.Instance.GetCfg(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_loaItem.url = ResPathUtil.GetIconPath(item1.res, "png"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (listItem.target.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    listItem.target.onClick.Add(() => OnClickBtnPlusStarConsum(index)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.target.data = id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            listItem.m_loaItem.url = ResPathUtil.GetIconPath(itemCfg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (hasCount < needCount) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //材料不足显示加号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    listItem.m_btnPlus.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnCheckself.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnCheckother.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int needCount = skillLvCfg.materiarsArr[index][1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            long hasCount = ItemDataManager.GetItemNum(skillLvCfg.materiarsArr[index][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            listItem.m_txtNeedCount.text = needCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            listItem.m_txtHasCount.text = StringUtil.GetColorText(hasCount.ToString(), hasCount < needCount ? "#D27869" : "#716660"); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            listItem.m_btnPlus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (listItem.target.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(skillLvCfg.materiarsArr[index][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_loaItem.url = ResPathUtil.GetIconPath(itemCfg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                int needCount = skillLvCfg.materiarsArr[index][1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                long hasCount = ItemDataManager.GetItemNum(skillLvCfg.materiarsArr[index][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_txtNeedCount.text = needCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_txtHasCount.text = StringUtil.GetColorText(hasCount.ToString(), hasCount < needCount ? "#D27869" : "#716660"); ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.m_btnPlus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (listItem.target.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    listItem.target.onClick.Add(() => OnClickBtnPlusStarConsum(index)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                listItem.target.data = skillLvCfg.materiarsArr[index][0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (hasCount < needCount) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //材料不足显示加号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    listItem.m_btnPlus.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnCheckself.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _ui.m_btnCheckother.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                listItem.target.onClick.Add(() => OnClickBtnPlusStarConsum(index)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            listItem.target.data = skillLvCfg.materiarsArr[index][0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (hasCount < needCount) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //材料不足显示加号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                listItem.m_btnPlus.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ComStarConsume.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnPlusStarConsum(int index) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -212,56 +166,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private async void OnClickBtnUpSpecial() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (!ItemUtil.CheckItemEnough(skillLvCfg.costID, skillLvCfg.costNum)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                long has = ItemDataManager.GetItemNum(skillLvCfg.costID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemUtil.BuyCurrency(skillLvCfg.costID, skillLvCfg.costNum - has); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (_ui.m_btnCheckself.selected && !_ui.m_btnCheckother.selected) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (int i = 0; i < skillLvCfg.materiarsArr.Length; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (!ItemUtil.CheckItemEnough(skillLvCfg.materiarsArr[i][0], skillLvCfg.materiarsArr[i][1], true)) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                bool result = await SkillSProxy.ReqUpgradeCardSkill(_cardId, _skillId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else if (!_ui.m_btnCheckself.selected && _ui.m_btnCheckother.selected) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemCfg item = ItemCfgArray.Instance.GetCfg(_cardId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                GeneralMaterialCfg grneral = GeneralMaterialCfgArray.Instance.GetCfgByrarityAndlevel(item.rarity, _skillLv); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (int i = 0; i < grneral.materiarsArr.Length; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (!ItemUtil.CheckItemEnough(grneral.materiarsArr[i][0], grneral.materiarsArr[i][1], true)) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //这里要改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                bool result = await SkillSProxy.ReqUpgradeCardSkill(_cardId, _skillId,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                PromptController.Instance.ShowFloatTextPrompt("请选择消耗的材料"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private void OnClickCheckSelf() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnCheckother.selected = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private void OnClickCheckOther() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnCheckself.selected = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnHide() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnHide(); 
			 |