public void GameOver() { Debug.Log("game over"); FindObjectOfType <PlayerControl>().Disable(); over = true; gameoverui.SetActive(true); FindObjectOfType <SurvivedTime>().ChangeText(timer.StopTimer()); }