On my game if I take a iten it apper on my UI Menu on an order but if I dont take the first item and I take the second, it need to be the first item on my order, for this I need to make an array that if I get an item I need to sum 1 on my variable,
Here is my code:
The Lenght of moedasMenu is 10, subidor value is 1 the moedaNumber array works my problem is on moedaMenu that decide the next gameObject that will be enabled
for (int i = 0; i < subidor ; i++)
{
subidor++;
moedasMenu*.GetComponent<Image>().sprite = moedaNumber[valorMoeda];*
_ moedasMenu*.GetComponent().enabled = true;*_
* }*