public void SellWeapon() { if (GUIWeapon.NumberOfWeaponType(WeaponToUse.Name) > 0) { LevelManager.Instance.Command.SellWeapon(WeaponToUse.Name); } else { StatusManager.DisplayError("You current have 0 " + WeaponToUse.Name + " available."); } }
// Update is called once per frame void Update() { Text.text = string.Format("{0} x{1}", weapon.Name, GUIWeapon.NumberOfWeaponType(weapon.Name)); }