MayHeCome/Assets_dst/ChengHui/Script/ResourcesNum_UI.cs
2024-12-18 17:55:34 +08:00

23 lines
471 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ResourcesNum_UI : MonoBehaviour
{
public Text wood;
public Text stone;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
wood.text = "木头:" + Resources.Instance.wood;
stone.text = "石头:" + Resources.Instance.stone;
}
}