When testing out the game, if the debug message appears in your console, then the unpauseGame function is working,
if it doesn’t, then there is a line within the function that is causing an error
It looks like the animation is still running. Are you able to move?
Also check whether the gameIsPaused variable on your Game Manager (through the Inspector) is true or false. Something else might be setting it back to true.
Can you search your scripts to see if any other script is setting gameIsPaused back to true?
If you are using Windows, you can open Command Prompt and navigate to your project folder, then use findstr /s /c:"gameIsPaused" *.cs to find all the scripts that change the value of gameIsPaused.