void Awake(){ _instance = this; hpBar = transform.Find ("HPBar").GetComponent<UISlider> (); mpBar = transform.Find ("MPBar").GetComponent<UISlider> (); hpLabel = transform.Find ("HPBar/Thumb/Label").GetComponent<UILabel> (); mpLaebl = transform.Find ("MPBar/Thumb/Label").GetComponent<UILabel> (); }
private void Awake() { _instance = this; name = transform.Find("Name").GetComponent <UILabel>(); hpBar = transform.Find("HP").GetComponent <UISlider>(); mpBar = transform.Find("MP").GetComponent <UISlider>(); hpLabel = transform.Find("HP/Thumb/Label").GetComponent <UILabel>(); mpLabel = transform.Find("MP/Thumb/Label").GetComponent <UILabel>(); }
void Awake() { _instance = this; name = this.transform.Find("name").GetComponent <UILabel> (); hp = this.transform.Find("HPControlBar").GetComponent <UISlider>(); mp = this.transform.Find("MPControlBar").GetComponent <UISlider> (); exp = this.transform.Find("EXPControlBar").GetComponent <UISlider> (); hpLabel = this.transform.Find("HPControlBar/Thumb/Label").GetComponent <UILabel> (); mpLabel = this.transform.Find("MPControlBar/Thumb/Label").GetComponent <UILabel> (); expLabel = this.transform.Find("EXPControlBar/Thumb/Label").GetComponent <UILabel> (); }
private void Start() { _instance = this; nickName = transform.Find("Name_BG/NameText").GetComponent <Text>(); hpBar = transform.Find("HP").GetComponent <Slider>(); mpBar = transform.Find("MP").GetComponent <Slider>(); hpText = transform.Find("HP/HPText").GetComponent <Text>(); mpText = transform.Find("MP/MPText").GetComponent <Text>(); pi = GameObject.FindGameObjectWithTag(Tags.Player.ToString()).GetComponent <PlayerInfo>(); UpdateShow(); }
void Awake() { instance = this; }
public void Awake() { _instance = this; }