I have a clone that is supposed to be instantiated when conditions are met, but for some reason, when they ARE met. The clone appears more than once simultaneously. Its not constant. as some times it is only one, and other times it is four or five. Debugging through didn’t give me an answer. so I’m lost
I’d need to see more code, but I assume that the ItemUnlocked method is called more than once for some reason.
First thing that comes to my mind is that you’re calling it when a buttons is pressed, but you’re using GetButton (which repeats while the button is pressed) instead of GetButtonDown (which is sent only the first frame the button is pressed).
Have you tried adding a trace to see how many times this method is accessed?