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