Following problem/question:
I have a class containing a switch case which handles the behaviour of that class.
Now i want to make a lot of instances/objects of this class on my stage.
I want on every frame to execute each of the objects switch case function.
Is there a way to do this without having to go through all the objects names, having the objects to automatically run their switch case on every frame?
I thought maybe about making an array of all those objects and cycle through it and execute each of their switch cases in an enter frame event function… But maybe there is a smarter way?