using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ReadyView : PinBallUIBase { public Text hintText; protected override void Init() { base.Init(); uILevel = PinBallUILevel.Pop; hintText = transform.Find("Text").GetComponent(); } protected override void ShowUIOpt(object[] args) { int num = (int)args[0]; hintText.text = num.ToString(); if (num >= 3) { hintText.color = Color.red; } else if(num == 2) { //hintText.color = Color.yellow; hintText.color = Color.red; } else if (num == 1) { //hintText.color = Color.green; hintText.color = Color.red; } } protected override void HideUIOpt() { } }