Exemple #1
0
    public void StartToGame3()
    {
        int resultScore = ScoreAddition.ResultScore();

        resultScore = 0;
        SceneManager.LoadScene("GameScene3");
    }
Exemple #2
0
    public void BackToTitle()
    {
        int resultScore = ScoreAddition.ResultScore();

        resultScore = 0;
        SceneManager.LoadScene("TitleScene");
    }
Exemple #3
0
    public void StartToGame()
    {
        int resultScore = ScoreAddition.ResultScore();

        resultScore = 0;
        if (SceneManager.GetActiveScene().name == "ResultScene2")
        {
            SceneManager.LoadScene("GameScene2");
        }
        else if (SceneManager.GetActiveScene().name == "ResultScene3")
        {
            SceneManager.LoadScene("GameScene3");
        }
        else
        {
            SceneManager.LoadScene("GameScene");
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        int resultScore = ScoreAddition.ResultScore();

        GetComponent <Text>().text = "得点:" + resultScore.ToString();
    }