public void LoadInGameScene() { int currentStage = PlayerPrefHelper.GetCurrentStage(); PlayerPrefHelper.SavePassingStage(currentStage); SceneManager.LoadScene("GameScene"); }
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); }
private void StartGame(int level) { PlayerPrefHelper.SavePassingStage(level); SceneManager.LoadScene("GameScene"); }