Adding event listeners in a for loop with a temp variable isn't working C#,Adding Listeners through a for loop with a temporary variable isn't working. Am I going crazy?
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?,
[1]: /storage/temp/162908-buttonhelpunity.png
I've spent the last day or so researching this problem and everything I've found says that this script should be working. Each button outputs the last assigned variable to i, which in this case is 4.
Follow this Question
Related Questions
Problem with enabling menu 0 Answers
What is the C# " public void (name) " equivalent in JS? 1 Answer
Script don't work if connected to vehicle 0 Answers
UI buttons won't recognize script 0 Answers
How to create buttons with script? 0 Answers