public void Buy(RoomItemConfig cfg, ItemVariant varitant, int cost, CurrencyType type) { switch (type) { case CurrencyType.SOFT: saveManager.SpendSoftCurrency(cost); break; case CurrencyType.HARD: saveManager.SpendHardCurrency(cost); break; } saveManager.AddRoomItemToShopList(cfg, varitant); }