The same script in several game objects is executed only for the last added one. What to do? (SOLVED)

Local variables are shared with all instances of a script. You need to store them as self.

A detailed explanation can be found here.

5 Likes