public void OnGameOver() { gameOverUIHandler.OnGameOver(); IsGameOver = true; pipeFactory.StopGeneration(); }