In a game type, I need to call a function whenever a match is ended, be it via score/time limit being hit or pressing escape and starting a new match midgame. I've tried putting the call in both RestartGame() & EndGame(), but it seemes neither of these gets called when you press escape and start a new game... any idea where I should call the function from?