Welcome to the community @BogdanYr
The error says AdHandler
does not have a gameOverHandler
definition. You are not showing the full AdHandler
, so we cannot know if this is true, or an error.
It looks like you don’t have a global declaration for a GameOverHandler (GameOverHan in your script)
You need something like
GameOverHan gameOverHandler;
in the script (outside of any methods).