コード例 #1
0
    public void LoadInGameScene()
    {
        int currentStage = PlayerPrefHelper.GetCurrentStage();

        PlayerPrefHelper.SavePassingStage(currentStage);
        SceneManager.LoadScene("GameScene");
    }
コード例 #2
0
    private void CompleteLevel()
    {
        gameController.Stop();
        HideComponent();
        StartCoroutine(ShowCompletePopup(0.1f, passingStage));
        int currentStage = PlayerPrefHelper.GetCurrentStage();

        passingStage = passingStage + 1;
        PlayerPrefHelper.SavePassingStage(passingStage);
        if (passingStage > currentStage)
        {
            PlayerPrefHelper.SaveCurrentStage(passingStage);
        }

        //SceneManager.LoadScene(SceneManager.GetActiveScene().name);
    }
コード例 #3
0
 private void StartGame(int level)
 {
     PlayerPrefHelper.SavePassingStage(level);
     SceneManager.LoadScene("GameScene");
 }