Exemplo n.º 1
0
 private void Start()
 {
     Canvas        = GameObject.FindGameObjectWithTag("Canvas");
     LunchLass     = GameObject.FindGameObjectWithTag("Player");
     healBoxAmount = Canvas.GetComponentInChildren <HealBoxAmount>();
     health        = LunchLass.GetComponentInChildren <BoHealthController>();
     healthBar     = LunchLass.GetComponentInChildren <BoHealthBar>();
 }
Exemplo n.º 2
0
 private void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     health = player.GetComponent <BoHealthController>();
 }