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(); } } 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() { } } }