27 lines
567 B
C#
27 lines
567 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class CancelMatchBtnDotCtr : MonoBehaviour {
|
|||
|
|
|||
|
public List<GameObject> _TextObjList;
|
|||
|
|
|||
|
private void OnEnable()
|
|||
|
{
|
|||
|
StartCoroutine(ChangeText());
|
|||
|
}
|
|||
|
|
|||
|
int _Count = 0;
|
|||
|
IEnumerator ChangeText()
|
|||
|
{
|
|||
|
yield return new WaitForSeconds(0.2f);
|
|||
|
_Count = ++_Count % 3;
|
|||
|
for (int index = 0; index < _TextObjList.Count; index++)
|
|||
|
{
|
|||
|
_TextObjList[index].SetActive(index == _Count);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|