public void Sell(ref ISellable sellable) { var price = GameManager.Instance.SellPriceDictionaryService.GetSellPrice(sellable); GameManager.Instance.InventoryService.RemoveItemByType(sellable.GetType()); GameManager.Instance.MoneyService.MoneyAmount += price; sellable = null; }
public int GetSellPrice(ISellable sellable) { return(base.GetValueForType(sellable.GetType())); }