Example #1
0
    public void MakePurchase(GameObject pButtonGameObject)
    {
        BuyableItem   item          = ButtonToItemModel [pButtonGameObject];
        ItemUIControl itemUIControl = ItemModelToUIControl [item];

        item.OnPurchased();
        itemUIControl.OnPurchased();
    }