public void Update() { healthBarFill.Width = (int)(healthBar.Width * ((float)player.GetHealth() / player.GetMaxHealth())); manaBarFill.Width = (int)(manaBar.Width * ((float)player.GetMana() / player.GetMaxMana())); xpBarFill.Width = (int)(xpBar.Width * ((float)player.GetXp() / player.GetXpToLevel())); }