Skip to content

Support global events? #9

@justonia

Description

@justonia

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions