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; } }