mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
16 lines
230 B
C#
16 lines
230 B
C#
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class TextMain : MonoBehaviour
|
||
|
{
|
||
|
|
||
|
public GameObject root;
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
|
||
|
GetComponent<Text>().text = $"{root.transform.childCount}";
|
||
|
|
||
|
}
|
||
|
}
|