I am making a skins menu for my game, and I'm using an array to store if each skin is unlocked (0 for no, 1 for yes). Each button for the skins is just an instance of a base object to make it easier, and each instance has an ID variable to see which skin it is. I have an event that checks the array slot corresponding to the skin with the ID (So Check X -> if SkinButton.id = 1, do actions). If the slot is 0 (locked) I want the button to be black (I used Set Color rgbEx(0, 0, 0)) but if it's 1, reset the color.
The issue is that it checks for all instances, meaning if just one is locked, they all set the color to 0, 0, 0. How can I check the array for each individual instance instead of all of them?
Sorry if I worded it weird.