Im bad at explaining things so included a picture
Upon start game FSM 00SetupGame, 01CreatureSpawner, and 02CombatSystem are created.
WipsEnemy prefab is also created, upon hitting the player will send an event to these three prefabs.
The problem is that they are now renamed with (Clone) so the event is never received.
First I tried to store them all as global game objects but doing this per FSM is going to get ridiculous quickly.
And now secondly I'll be trying to rename it without the (Clone) ending.
Is this the best way to go or is there a cleaner solution ...
... Renaming didn't work either. Kind of figured.
I had to make the FSM's as prefabs as trying to send events from other prefabs isn't possible, in that case global variables must be used.
-------
Solved this issue by instead of sending an event using a global Boolean instead and having the FSM check the state of that Boolean every frame.
This is an okay solution but I wonder, how do experienced programmers normally handle it?