2025-09-08 17:37:12 +08:00

23 lines
419 B
C#

using UnityEngine;
using UnityEngine.UI;
public class YiZhuDan : MonoBehaviour
{
Text[] input;
private void Awake()
{
input = GetComponentsInChildren<Text>();
}
private void OnEnable()
{
for (int i = 0; i < input.Length; i++)
{
input[i].text = string.Empty;
}
}
public void SetTxt(string s,int i = 0)
{
input[i].text = s;
}
}