private void Start() { Debug.Assert(_mainView && _settingsView); _settingsView.Hide(); _mainView.Show(); //SoundManager.Instance.StartGameMainTheme(); }
private void Awake() { //contentManager.enabled = false; settingsView.Hide(); //settingsButton.Hide(); #if !UNITY_EDITOR GameObject.Find("Sanity").SetActive(false); #endif foreach (GameObject sanityObject in sanityObjects) { sanityObject.SetActive(false); } }
private void SetupViews() { _startScreenView.StartGame.onClick.AddListener(OnStartNewGameClick); _startScreenView.Settings.onClick.AddListener(OnShowSettingsClick); _startScreenView.Quit.onClick.AddListener(Application.Quit); _settingsView.ApplyButton.onClick.AddListener(OnApplySettingsClick); _settingsView.RestoreDefaultsButton.onClick.AddListener(_settingsSystem.RestoreDefaultSettings); _settingsView.QuitButton.onClick.AddListener(Application.Quit); _startScreenView.Show(); _settingsView.Hide(); }
private void Awake() { contentManager.enabled = false; settingsView.Hide(); settingsButton.Hide(); culture = PlayerPrefs.GetString("culture"); Debug.Log(culture); if (culture == "austrian") { storyJSON = storyJSON_austria; } if (culture == "slovenian") { storyJSON = storyJSON_slovenia; } if (culture == "slovakian") { storyJSON = storyJSON_slovakia; } }
public void Hide() { _settingsView.Hide(); }
private void Awake() { contentManager.enabled = false; settingsView.Hide(); settingsButton.Hide(); }