12345678910111213141516171819202122232425 |
- using System.Collections;
- using UnityEngine;
- using UnityEngine.UI;
- using TMPro;
- namespace GHZLangChao
- {
- public class RoomName_Item : AbstractController
- {
- public TextMeshProUGUI RoomName_Text; // 显示机房名称
- public TextMeshProUGUI XunJian_Text; // 显示巡检
- private void Start()
- {
- XunJian_Text.text = "未巡检";
- StartCoroutine(UpdateText());
- }
- private IEnumerator UpdateText()
- {
- yield return new WaitForSeconds(3);
- XunJian_Text.text = "已巡检";
- }
- }
- }
|