Use Get Game Instance
followed by Cast To (Your Game Instance Class)
.
Also, you really should not be calling Collect Garbage
. Just let it do its work on its own.
Also, it’s recommended to use On Clicked
event for buttons, rather than On Released
.