作者:心平 | 来源:互联网 | 2023-07-18 20:05
usingUnityEngine;usingSystem.Collections;学习NGUI“反响推送”时间机制publicclassNewBehaviourScript:Mon
using UnityEngine; using System.Collections;
//学习NGUI“反响推送”时间机制
public class NewBehaviourScript : MonoBehaviour {
public UISlider UiSliderObj;// 滑动条
public void DispalyIipInfo(){
this.GetComponent ().text = "你点击了Button!";
}
//显示滑动条的数值
public void DisplaySliderNumber(){
this .GetComponent ().text = UiSliderObj.value .ToString ();
}
}
Unity 脚本