protected void UpdateWeaponInfo() { Weapon weapon = weaponList[currentSelectionWeaponIndex]; string damage = "DAMAGE " + Math.SignificantFigures(weapon.Damage, 4); string firerate = "FIRE RATE " + Math.SignificantFigures(weapon.AttackFrequency, 4) + "s"; string accuracy = "ACCURACY " + Math.SignificantFigures(weapon.Accuracy, 4) + "%"; string ammo = "x" + weapon.BulletCount; if (weapon.GetWeaponType() == WeaponType.Saw) { ammo = ""; } weaponInfoPanel.UpdateBulletLogo((int)weapon.GetWeaponType()); weaponInfoPanel.SetText("" + weapon.Name + "\n" + damage + "\n" + firerate + "\n" + accuracy); weaponInfoPanel.SetBulletText(ammo); }