Exemplo n.º 1
0
 void Awake()
 {
     fuel         = GameObject.FindWithTag("Player").GetComponent <PlayerFuelBar>();
     percentValue = this.GetComponentInParent <UiBar>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     health       = GameObject.FindWithTag("Player").GetComponent <PlayerHealthBar>();
     percentValue = this.GetComponentInParent <UiBar>();
 }