//--------------------------------------------------------
|
// [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<Transform> objs = new List<Transform>();
|
|
protected override void Awake()
|
{
|
objs.Add(proxy.GetWidgtEx<Transform>("CrossServerQualifyingGuess4SubCell0"));
|
objs.Add(proxy.GetWidgtEx<Transform>("CrossServerQualifyingGuess4SubCell1"));
|
}
|
|
public void Display(int index)
|
{
|
var _cell = objs[0].GetILBehaviour<CrossServerQualifyingGuess4SubCell>();
|
_cell.Display(index);
|
if (index + 1 >= CrossServerQualifyingModel.Instance.guessPlayer8List.Count)
|
{
|
objs[1].SetActiveIL(false);
|
return;
|
}
|
objs[1].SetActiveIL(true);
|
var _cell1 = objs[1].GetILBehaviour<CrossServerQualifyingGuess4SubCell>();
|
_cell1.Display(index + 1);
|
}
|
|
}
|