|  | @@ -1,5 +1,6 @@
 | 
	
		
			
				|  |  |  using ET;
 | 
	
		
			
				|  |  |  using FairyGUI;
 | 
	
		
			
				|  |  | +using UI.CommonGame;
 | 
	
		
			
				|  |  |  using UI.League;
 | 
	
		
			
				|  |  |  using UnityEngine;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -64,13 +65,25 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          private void UpdateComPary(GObject obj, int type)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              LeaguePrayCfg prayCfg = LeaguePrayCfgArray.Instance.GetCfg(type);
 | 
	
		
			
				|  |  |              UI_ComPary item = UI_ComPary.Proxy(obj);
 | 
	
		
			
				|  |  | +            int curTimes = LeagueDataManager.Instance.GetPrayTimesByType(type);
 | 
	
		
			
				|  |  | +            int ExtraArrLength = prayCfg.bonusExtraArr.Length;
 | 
	
		
			
				|  |  |              ItemUtil.UpdateItemNeedNum(item.m_comGain, prayCfg.bonusArr[0][0], prayCfg.bonusArr[0][1], false, "#B38441");
 | 
	
		
			
				|  |  |              ItemUtil.UpdateItemNeedNum(item.m_comFirstGain, prayCfg.bonusOnceArr[0][0], prayCfg.bonusOnceArr[0][1], false, "#B38441");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            int curTimes = LeagueDataManager.Instance.GetPrayTimesByType(type);
 | 
	
		
			
				|  |  | +            if(ExtraArrLength > 0)
 | 
	
		
			
				|  |  | +                ItemUtil.UpdateItemNeedNum(item.m_comGain2, prayCfg.bonusExtraArr[0][0], prayCfg.bonusExtraArr[0][1], false, "#B38441");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            if (curTimes != 0 && ExtraArrLength <= 0)
 | 
	
		
			
				|  |  | +                item.m_c1.selectedIndex = 0;
 | 
	
		
			
				|  |  | +            else if(curTimes != 0 && ExtraArrLength > 0)
 | 
	
		
			
				|  |  | +                item.m_c1.selectedIndex = 1;
 | 
	
		
			
				|  |  | +            else if (curTimes == 0 && ExtraArrLength <= 0)
 | 
	
		
			
				|  |  | +                item.m_c1.selectedIndex = 2;
 | 
	
		
			
				|  |  | +            else if (curTimes == 0 && ExtraArrLength > 0)
 | 
	
		
			
				|  |  | +                item.m_c1.selectedIndex = 3;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              if (type == LeaguePrayType.First && curTimes == 0)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  ItemUtil.UpdateItemNeedNum(item.m_btnPray.m_comCost, prayCfg.consumeArr[0][0], 0);
 | 
	
	
		
			
				|  | @@ -79,10 +92,10 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  ItemUtil.UpdateItemNeedNum(item.m_btnPray.m_comCost, prayCfg.consumeArr[0][0], prayCfg.consumeArr[0][1]);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            item.m_c1.selectedIndex = curTimes == 0 ? 0 : 1;
 | 
	
		
			
				|  |  |              item.m_btnPray.target.enabled = curTimes < prayCfg.limit;
 | 
	
		
			
				|  |  |              item.m_txtCount.SetVar("value", curTimes.ToString()).FlushVars();
 | 
	
		
			
				|  |  |              item.m_txtCount.SetVar("maxValue", prayCfg.limit.ToString()).FlushVars();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              if (item.m_btnPray.target.data == null)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  item.m_btnPray.target.onClick.Add(OnBtnPrayClick);
 |