Hi there, apologies in advance as this is a bit of an open question and something I've been unable to wrap my brain around.
I have an object that has an instance variable called Action
When Action is 0, it does X
When Action is 1, it does Y
When Action is 2, it does Z
The problem arises when there are multiple instances of this object.
If there are two instances where Action=1, it seems that only one of them will do Y the other will do nothing.
How do I correctly sequence these, so that both of them do Y rather than just one? Is it for each or something else ... please answer like I'm 5 years old haha