public void StartToGame3() { int resultScore = ScoreAddition.ResultScore(); resultScore = 0; SceneManager.LoadScene("GameScene3"); }
public void BackToTitle() { int resultScore = ScoreAddition.ResultScore(); resultScore = 0; SceneManager.LoadScene("TitleScene"); }
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(); }