public void LoseTheGame()//called when lose { wallGenerator.HideAllWalls(); playerDied = true;//ball went out of the screen startFlag = false; UnPauseTheGame(); scoreManager.SavePlayerScore(); playingSceneCanves.ShowGameOverMenu(); playingSceneCanves.HideAdMenu(); //playingSceneCanves.ShowGameOverMenu(); }