using UnityEngine; using System.Collections;
//学习NGUI“反响推送”时间机制
public class NewBehaviourScript : MonoBehaviour {
public UISlider UiSliderObj;// 滑动条
public void DispalyIipInfo(){
this.GetComponent <UILabel> ().text = "你点击了Button!";
}
//显示滑动条的数值
public void DisplaySliderNumber(){
this .GetComponent <UILabel > ().text = UiSliderObj.value .ToString ();
}
}
时间: 2024-10-14 09:38:14