Esempio n. 1
0
    private void Start()
    {
        Debug.Assert(_mainView && _settingsView);

        _settingsView.Hide();
        _mainView.Show();

        //SoundManager.Instance.StartGameMainTheme();
    }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 public void Hide()
 {
     _settingsView.Hide();
 }
 private void Awake()
 {
     contentManager.enabled = false;
     settingsView.Hide();
     settingsButton.Hide();
 }