void Update() { UpdateBar(healthBar, maxHealth, avatar.GetHealth()); UpdateBar(energyBar, maxEnergy, bulletGun.GetEnergy()); }