public void PressTutorial() { saveGameController.EnableTutorial(); saveGameController.SaveData(); PressStart(); }
/// <summary> /// Show Finish Screen and time to reset all stuff /// </summary> public void FinishGame(bool win) { GameIsFinished = true; Raven.gameObject.SetActive(false); uiController.backButton.gameObject.SetActive(false); if (greyBackground) { greyBackground.enabled = true; } // Disable Dice DisablePointerAtColorWheelHint(); DisablePointerFingerSwipeAnimation(); DiceController.HideColorWheel(); DiceController.Enable(false); DiceController.AllowToRoll(false); uiController.EnableDiceButton(false); // Debug InputManager.BlockInput(); InputManager.BlockDiceRole(); saveGameController.IncreaseGamesPlayed(); // Show Win/Lose if (win) { uiController.ShowWinCutscene(); if (rewardCheerSFX != null) { AudioManager.Instance.SetSFXChannel(rewardCheerSFX); } int seedCount = UnityEngine.Random.Range(1, 4); ShowRewardStartUpAnimation(seedCount, saveGameController.current.collectedSeeds - saveGameController.current.usedSeeds); saveGameController.current.collectedSeeds += (byte)seedCount; saveGameController.DisableTutorial(); saveGameController.SaveData(); } else { //uiController.ShowLoseCutscene(); BackToMenu(); saveGameController.SaveData(); } }
public void UnlockSecret() { saveGameController.UnlockSecret(); saveGameController.SaveData(); AudioManager.Instance.SetSFXChannel(unlockSound, null, 0f, 0); Debug.Log("Secret unlocked"); }
// Use this for initialization void Start() { PlayerSaveGameController saveGameController = new PlayerSaveGameController(); saveGameController.LoadData(); saveGameController.EnableIntro(); saveGameController.SaveData(); SceneManager.LoadScene("StartScreen", LoadSceneMode.Single); }