Passing values back from Overlay

HI,

I have a game-pause-menu overlay where user can either press continue or restart buttons. How can I pass the user selection back to the scene that shows the overlay without using global vars. I am trying to listen for overlayEnded event.

Thanks.
/t [import]uid: 12109 topic_id: 29071 reply_id: 329071[/import]

try adding a variable to the storyboard variable while in your overlay then setting it back to nil from your main scene when you’re done using it :slight_smile: [import]uid: 144908 topic_id: 29071 reply_id: 116969[/import]