示例#1
0
 // Use this for initialization
 void Start()
 {
     gameController = GameController.Instance ();
     text = GetComponent<Text> ();
     text.text = prefixText+gameController.GetTotalScore ()+suffixText;
 }