I have an object that moves right and then left. It all works fine, but then I instantiate 2 more of thos in the scene and my code runs the same code through a For Each loop.
The first/initial object continues to move left/right without an issue but the two new instances get trapped in an endless loop not knowing to move left or right.
Regardless of the actual code within the loop, why does the first instance work fine but additional instances do not? (They are each running the same code.)
Surely the 'For Each' should have no preference?
Maybe there are some common gotchas?
Cheers