void Awake() { // If tutorials are disabled we don't need this game object if (PlayerPrefController.GetTutorialToggle() != 1) { isEnabled = false; } else { isEnabled = true; } }
private void Start() { volumeMute = false; versionText.text = "v" + Application.version; turnMultiplier = 20; volumeSlider.value = PlayerPrefController.GetVolume(); difficultySlider.value = PlayerPrefController.GetDifficultyLevel(); turnsSlider.value = PlayerPrefController.GetTurnLimit() / turnMultiplier; if (PlayerPrefController.GetTutorialToggle() != 1) { tutorialToggle.isOn = false; } else { tutorialToggle.isOn = true; } }