using UnityEngine; namespace vnxbqy.UI { public class FairySiegePromotionEndWin : Window { [SerializeField] TextEx txtInfo; [SerializeField] TextEx txtInfo1; 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("FairySiege157", model.newCampRound.Rank, nowBatType); string nowGroupNum = Language.Get(StringUtility.Contact("FairySiegeBattlefieldGroup", model.newCampRound.GroupNum)); int allScore = model.GetAllScore(); txtInfo1.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() { } } }