private void startEndGame() { mainCamera.Flash(Color.black, restartGame, 3f, 4f, 1f); isEnding = true; }