コード例 #1
0
    //increment the menu depth of our cursor
    //each increment is a further submenu down
    private void selectionAxisCommands()
    {
        print("selectionAxisCommands");
        string name = "";

        for (int i = 0; i < _uiTexts.Length; i++)
        {
            name += _uiTexts[i].text;
        }
        //THE IDEA IS WHEN YOU FINISH THE GAME. IT CALCULATES THE SCORE THEN USES PLAYERPREFS.SETPREFS to save it and load it here.
        //also it uses the static IsItHighscore bool to check if a new score achieved if it is then loads this scene

        HighscoreScript.AddScore(name, _score);
        //How do you make it select replay button though?
        print("it gets here");

        PlayerPrefs.SetString("Replay", "True");
        Time.timeScale = 1f;
        SceneManager.LoadScene(6);
    }