public void ModeToEndGame() { playerController.resetPlayer(40.0f, 5.0f); endGameGO.SetActive(true); ground.DeleteExistingEnemy(); ground.DeleteExistingItem(); curState = Mode.EndGame; }