标签:
public class GameManager : MonoBehaviour { public Text scoreText; void Start() { scoreText = GameObject.Find("scoreText").GetComponent<Text>(); } void Update () { scoreText.text = "Score :" + score; } }
标签:
原文地址:http://www.cnblogs.com/fuperfun/p/5350956.html