I currently have multiple objects with the same script attached to it, but each of the scripts has a different value for one of the public variables. However, when I run the program all the scripts end up with the same value. I even tried creating a test public int, and I changed half of the objects int value to 1 and the other half to 0, yet they all ended up having the value of 0.
For clarification, right now I currently cycle through a public array of GameObject prefabs that each have a script attached to it, and I run a method on each of them.
Can you show me how you declare to use variables