/// <summary> /// Used to update our health bar when the hud updates /// </summary> /// <param name="indexToUpdate"></param> private void UpdateHealthBarHealth(int indexToUpdate) { UIHealthBars[indexToUpdate].SetHealthBarAmount( (float)_gm.GetPlayer(indexToUpdate).GetHealth() / (float)_gm.GetPlayer(indexToUpdate).GetMaxHealth()); }