Hi everyone,
I'm looking for a better way to associate unique logic/behaviors with entities that share the same interaction trigger.
For example, i have different Sprites sharing a common interaction (e.g., "On<Pointer<Press>>"), but the actual resulting behavior varies significantly (e.g., opening a unique UI menu, triggering a specific script, etc.).
I want to avoid a centralized "god-system" with a massive match statement, as it violates the Open/Closed Principle and becomes a maintenance burden for data-driven content.
How to keep the UI interaction logic decoupled from the game logic?
Any advice or pointers to existing patterns would be greatly appreciated. Thanks!