| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | 
							- using System.Linq;
 
- using Core.Language;
 
- using Excel2Json;
 
- namespace Fort23.Mono
 
- {
 
-     [UIBinding(prefab = "SummonScoreRuleWidget")]
 
-     public partial class SummonScoreRuleWidget : UIComponent
 
-     {
 
-         AccountFileInfo.SummonSocreData socreData;
 
-         private void Init()
 
-         {
 
-         }
 
-         public override void AddEvent()
 
-         {
 
-         }
 
-         public override void DelEvent()
 
-         {
 
-         }
 
-         public override void AddButtonEvent()
 
-         {
 
-         }
 
-         public void CustomInit(OpenBoxScoreRule scoreRule, int idnex)
 
-         {
 
-             if (idnex % 2 == 0)
 
-             {
 
-                 ctc.ChangeState(0);
 
-             }
 
-             else
 
-             {
 
-                 ctc.ChangeState(1);
 
-             }
 
-             AccountFileInfo.SummonData summonData =
 
-                 PlayerManager.Instance.SummonManager.summonDataMap[scoreRule.openBoxID];
 
-             socreData = summonData.summonSocreData.FirstOrDefault(ss => ss.id == scoreRule.ID);
 
-             Text_Name.text = LanguageManager.Instance.Text(scoreRule.lanID);
 
-             Text_Score.text = scoreRule.score.ToString();
 
-             Text_CompleteCount.text = socreData == null ? "0" : socreData.currentCount.ToString();
 
-             Text_AllScore.text = socreData == null ? "0" : (socreData.currentCount * scoreRule.score).ToString();
 
-             Text_AllCount.text = socreData == null ? "0" : socreData.count.ToString();
 
-         }
 
-     }
 
- }
 
 
  |