using vnxbqy.UI; using System.Collections; using System.Collections.Generic; using UnityEngine; using System; namespace EnhancedUI.EnhancedScroller { public class ImpactRankPromoteCell : ScrollerUI { [SerializeField] WayCell[] m_WayCells; ImpactRankModel m_Model; ImpactRankModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel()); } } DailyQuestModel _questModel; DailyQuestModel QuestModel { get { return _questModel ?? (_questModel = ModelCenter.Instance.GetModel()); } } public override void Refresh(CellView cell) { var _line = cell.index; var _array = model.GetBillRankPromotePaths(model.presentSelectType); for (int i = 0; i < 2; i++) { int _index = _line * 2 + i; if (_index < _array.Count) { m_WayCells[i].SetActive(true); var _way = _array[_index]; m_WayCells[i].Display(0, _way.x); } else { m_WayCells[i].SetActive(false); } } } } }