少年修仙传客户端代码仓库
lcy
2025-05-08 1314c3b3c14cd520bbb8569b5f98d68933a22cd3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using UnityEngine;
 
namespace vnxbqy.UI
{
    public class FairySiegePromotionSurvivalWin : Window
    {
        [SerializeField] TextEx txtInfo;
        [SerializeField] TextEx txtInfo1;
        [SerializeField] TextEx txtInfo2;
        FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
 
        protected override void BindController()
        {
        }
 
        protected override void AddListeners()
        {
        }
 
        protected override void OnPreOpen()
        {
            if (model.newCampRound == null)
                return;
            string nowBatType = Language.Get(StringUtility.Contact("FairySiegeBattlefieldType", model.newCampRound.BatType));
            txtInfo.text = Language.Get("FairySiege155", nowBatType);
            bool isShowTip = model.TryGetMatchUpNum(model.operationCrossAct.JoinFamilyCnt, model.newCampRound.RoundNum, model.newCampRound.BatType, out int num);
            txtInfo1.text = Language.Get("FairySiege132", isShowTip ? num : 0);
            string nowGroupNum = Language.Get(StringUtility.Contact("FairySiegeBattlefieldGroup", model.newCampRound.GroupNum));
            int allScore = model.GetAllScore();
            txtInfo2.text = Language.Get("FairySiege156", nowBatType, nowGroupNum, model.newCampRound.Rank, model.newCampRound.Score, allScore);
            model.TrySetRoundEndShow();
        }
 
        protected override void OnPreClose()
        {
        }
 
        protected override void OnAfterOpen()
        {
        }
 
        protected override void OnAfterClose()
        {
        }
    }
}