using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class NewBehaviourScript : MonoBehaviour {
Text mytxt;
// Use this for initialization
void Start () {
mytxt = GameObject.Find("Text").GetComponent<Text>();
}
// Update is called once per frame
void Update () {
mytxt.text = "138";
}
}
沒有留言:
張貼留言