Join our Discord Channel
FsmEventTarget eventTarget = new FsmEventTarget(); eventTarget.target = FsmEventTarget.EventTarget.BroadcastAll; var fsmList = new List<Fsm>(Fsm.FsmList); if (fsmList.Count>0){ Fsm fsmOne = fsmList[0]; fsmOne.Event(eventTarget,anEvent); } //foreach (var fsm in fsmList){fsm.Event(anEvent);}
jeanfabre,Did you ever find a solution to your last post?I have a script attached to a non-fsm gameobject. I want to broadcast global events out to all available FSM's. It seems that right now, I need to know the name of each FSM in order to do this...correct?