using System; using UnityEngine; using UnityEngine.UI; using TableConfig; using EnhancedUI.EnhancedScroller; namespace Snxxz.UI { public class CrossServerOneVsOneDanLvCell : ScrollerUI { [SerializeField] Image lvImg; [SerializeField] Text nameText; [SerializeField] Text scoreText; public override void Refresh(CellView cell) { var config = Config.Instance.Get(cell.index); if (config == null) return; lvImg.SetSprite(config.IconKey); nameText.text = config.Name; nameText.color = UIHelper.GetDanLVColor(config.DanLV, true); var preConfig = Config.Instance.Get(cell.index - 1); int score = preConfig == null ? 0 : preConfig.LVUpScore; scoreText.text = Language.Get("UnionLiven101", score); } } }