UnityFSMCodeGenerator icon indicating copy to clipboard operation
UnityFSMCodeGenerator copied to clipboard

Support global events?

Open justonia opened this issue 7 years ago • 0 comments

Should this library support PlayMaker global events, wherein a global event trigger will automatically go to a predefined state and ignore all transition events in the current state.

This also might be a good way to implement internal action sharing. For instance in phone example, there could be states with global transitions for "Volume Up" and "Volume Down" that have enter actions. Then via another action marker on the state it could transition back to previous state and not trigger onenter/onexit events.

Alternatively it could be argued in that example you should have two different FSMs...

justonia avatar Mar 02 '18 21:03 justonia