Exemplo n.º 1
0
    void onPurchaseClick()
    {
        if (_lockedItems.Length == 0)
        {
            return;
        }
        Unlockable item = _lockedItems[_currentSelectedItem];

        if (Currency.GetCurrency() >= item.Price)
        {
            //UnlockManager.instance.Unlo
            Currency.RemoveCurrency(item.Price);

            um.UnlockItem(item);

            RefreshItems();
        }
    }