// 显示武器等级 private void ShowWeaponLv() { string WeaponName = ""; switch (m_Camp.GetWeaponType()) { case ENUM_Weapon.Gun: WeaponName = "槍"; break; case ENUM_Weapon.Rifle: WeaponName = "長槍"; break; case ENUM_Weapon.Rocket: WeaponName = "火箭筒"; break; default: WeaponName = "未命名"; break; } m_WeaponLvTxt.text = string.Format("武器等级:{0}", WeaponName); }