//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Monday, January 28, 2019 //-------------------------------------------------------- using System; using UnityEngine; using UnityEngine.UI; using vnxbqy.UI; using System.Collections.Generic; public class CrossServerQualifyingGuess4Cell : ILBehaviour { List objs = new List(); protected override void Awake() { objs.Add(proxy.GetWidgtEx("CrossServerQualifyingGuess4SubCell0")); objs.Add(proxy.GetWidgtEx("CrossServerQualifyingGuess4SubCell1")); } public void Display(int index) { var _cell = objs[0].GetILBehaviour(); _cell.Display(index); if (index + 1 >= CrossServerQualifyingModel.Instance.guessPlayer8List.Count) { objs[1].SetActiveIL(false); return; } objs[1].SetActiveIL(true); var _cell1 = objs[1].GetILBehaviour(); _cell1.Display(index + 1); } }