- Home /
Question by
unity_Js2-Edti_aeI3g · Jul 07, 2020 at 01:18 PM ·
c#scripting problemfor-looplistener
Adding listeners to a button with a temp variable isn't working
I've been researching this problem for the past day or so. Everything I've found has told me to add a temp variable into the for-loop, which doesn't work. Each button gives the last variable t was assigned to, which in this case is 4. Is this just some silly user error?
buttonhelpunity.png
(58.7 kB)
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
For Loop is Only doing it's Job Once 2 Answers
Proplem with position reset script of certain object 0 Answers
player objects needs to broadcast its movement all enemies 1 Answer