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