例子:获取一个TEXT组件usingUnityEngine;usingSystem.Collections;usingUnityEngine.UI;publicclassSilderText:MonoBehaviour{publicSliderslider;Textmytext;//UpdateiscalledonceperframepublicvoidUpdateText(){mytext=gameObject.GetComponent<Text>();mytext.text=..
分类:
编程语言 时间:
2014-12-21 01:59:03
阅读次数:
212