Example #1
0
 private void TrySellWeapon(Gun gun, WeaponView view)
 {
     if (gun.Price <= _wallet.Money)
     {
         _wallet.BuyWeapon(gun);
         gun.Buy();
         view.SellButtonClick -= OnSellButtonClick;
     }
 }