Best way to decouple logic from UI (Button)

Is there a way to decouple my logic from the UI, specially when using buttons? Similar to how you could assign a button callback in the inspector in the old system?

I don’t want my UI logic to have to know anything about my game logic, but I can’t seem to find a way around hardcoding a reference to my game logic in the UI logic.

You can assign a callback to the clickable.clicked event of the button from anywhere that has a reference to the button.