All GameObject components should support event handler props. onClick etc.
thoughts:
In order for a GameObject to be clickable, they need to be marked as interactive via their setInteractive method
I feel like we should just automatically call setInteractive() on the component when any input event handler is provided. I don't think there's any downside to that
Any GameObject without a texture will need a shape provided for setInteractive. Should we require the interactive prop to be defined in those cases, or should we provide a default shape?
All GameObject components should support event handler props.
onClick
etc.thoughts:
interactive
prop to be defined in those cases, or should we provide a default shape?