Beispiel #1
0
 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.");
     }
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     Text.text = string.Format("{0} x{1}", weapon.Name, GUIWeapon.NumberOfWeaponType(weapon.Name));
 }