public EnumActionMarketItem TryToBuy(IItem itemMarket) { GameItem item = (GameItem)itemMarket; if (item.Price <= playerInformation.GetPlayerMoney()) { return(EnumActionMarketItem.Sold); } else { return(EnumActionMarketItem.NotSold); } }