private void TryToSellHook(Hook hook, HookView view, bool buyForAds) { if (buyForAds) { BuyHook(hook, view, buyForAds); } else if (_player.Money >= hook.Price) { BuyHook(hook, view, buyForAds); } }
private void BuyHook(Hook hook, HookView view, bool buyForAds) { _player.BuyHook(hook, buyForAds); _rod.SetHook(); view.SellButtonClick -= OnSellButtonClick; }
private void OnSellButtonClick(Hook hook, HookView view, bool buyForAds) { TryToSellHook(hook, view, buyForAds); }