MayHeCome/Assets_dst/ChengHui/Script/ResourcesNum_UI.cs

23 lines
471 B
C#
Raw Normal View History

2024-12-18 09:55:34 +00:00
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 = "ľͷ<C4BE><CDB7>" + Resources.Instance.wood;
stone.text = "ʯͷ<CAAF><CDB7>" + Resources.Instance.stone;
}
}