Example #1
0
        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;
        }
Example #2
0
 public int GetSellPrice(ISellable sellable)
 {
     return(base.GetValueForType(sellable.GetType()));
 }