I have a problem that I can't get any further. When the player buys a character, this button should be deactivated and remain so. can someone help me how i do that
I have a problem that I can't get any further. When the player buys a character, this button should be deactivated and remain so. can someone help me how i do that
Not sure which engine/language you are using, however, the basic idea should be similar:
In the success callback of the purchase, deactivate the button by doing this: button.interactable = false; (assuming you’re using Unity)
You may iterate all those 4 buttons and deactivate the ones whose associated character is in the inventory.
how do i find out which button belongs to which character. Maybe you have a code example
@Michael Brilz What engine/language are you using? If you're using Unity, it's as simple as
YourPurchaseButton.interactable = false;
I Check with getuserinventory if the character is in the inventory, but How i can deactivated the Button of this characters.
I forgot to give more information sry. I have 4 buttons on which players can buy characters with purchase item. How can I Check After the login if these characters are in the inventory, and deactivated the button of this character
3 People are following this question.