Note that you could also just place the example code from Play all animations in sequence - #8 by michalis inside the state class, i.e. you don’t really need a new class (TSomeClass
), you can just use the TStateMain
class and extend it.
That is what my comment in that example meant:
TSomeClass = class // place this in any class you have handy