コード例 #1
0
	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> ();

	}
コード例 #2
0
 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>();
 }
コード例 #3
0
 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> ();
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 void Awake()
 {
     instance = this;
 }
コード例 #6
0
ファイル: HeadStatusUI.cs プロジェクト: satela/xjhU3d
 public void Awake()
 {
     _instance = this;
 }