I have 4 entitiy types, each has its own StateMachine. There are transitions which also should invoke transitions on one or more different entity types.
I can solve this via the event system (either in entered
or transition
events) but this just doesnt look right. And it's hard to follow all cases and ensure that all dependencies are taken care of.
What would be a design-pattern for such a use-case? I need a way to connect independent StateMachines together.
TIA
Aucun commentaire:
Enregistrer un commentaire