Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 900 Bytes

File metadata and controls

13 lines (8 loc) · 900 Bytes

Forward Events To Game State Component

This component forwards any message that it receives to the active game state.

Game states can have message handlers just like any other reflected type. However, since they are not part of the world, messages are not delivered to them. By attaching this component to a game object, all event messages that arrive here are forwarded to the active game state.

This way, a game state can receive information, such as when a trigger gets activated. Multiple of these components can exist in a scene, gathering and forwarding messages from many different game objects, so that the game state can react to all of them.

See Also