Example #1
0
    public void ClickBuy()
    {
        switch (itemtype)
        {
        case ItemType.ALTIN10000:
            purchaser.Buy10000altin();
            break;

        case ItemType.ALTIN50000:
            purchaser.Buy50000altin();
            break;

        case ItemType.ELMAS25:
            purchaser.Buy25elmas();
            break;

        case ItemType.ELMAS100:
            purchaser.Buy100elmas();
            break;

        case ItemType.UnliminatedEnergy:
            purchaser.buyUnliminatedEnergy();
            break;
        }
    }