示例#1
0
    private void Update()
    {
        if (warning.activeSelf)
        {
            if (Input.GetKeyDown(KeyCode.Space))
            {
                DataSaver.ClearData();
                Debug.Log("Data cleared");
                warning.SetActive(false);
                clearDone.SetActive(true);
                mainMenu.ReUpdateHighscoreLists();

                StartCoroutine(OutOfWarning());
            }

            if (Input.GetKeyDown(KeyCode.Escape))
            {
                warning.SetActive(false);
                highscores.SetActive(true);
            }
        }
    }