📜  如何使文本统一显示变量 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:06.360000             🧑  作者: Mango

代码示例1
using UnityEngine.UI;  //its a must to access new UI in script
 public class YourClass : MonoBehaviour
 {
     public Text Score_UIText; // assign it from inspector
 void Start()
 {
    Score_UIText.text = yourscore_variable;
 }