예제 #1
0
 // Use this for initialization
 void Start()
 {
     healthSlider = this.gameObject.GetComponentInChildren<UnityEngine.UI.Slider> ();
     healthText = healthSlider.GetComponentInChildren<UnityEngine.UI.Text> ();
     ps = gameObject.GetComponentInParent<PlayerStats> ();
 }