| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<Text>();
- }
- 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()
- {
-
- }
- }
|