Exemplo n.º 1
0
 private void Start()
 {
     try
     {
         if (PlayerPrefsManager.GetFBID() != string.Empty)
         {
             facebookButton.parent.gameObject.SetActive(value: false);
         }
         string empty = string.Empty;
         empty = FirebaseController.FetchRemoteValue("menu_theme");
         if (empty == "1")
         {
             ThemeManager.instance.ChangeTheme(1);
         }
         else
         {
             ThemeManager.instance.ChangeTheme(0);
         }
         if (fromDaily)
         {
             DailyPuzzleButtonClicked();
             AfterGameFadeIn(GameController.set);
         }
         errorText.text = "Error: 200";
         SoundManager.instance.PlayMusic(1f);
         errorText.text = "Error: 205";
         SetTexts();
         errorText.text = "Error: 206";
         if (PlayerPrefsManager.GetLang() != string.Empty && shouldSetTexts)
         {
             TextController.instance.SetTexts(string.Empty);
         }
         errorText.text = "Error: 207";
         errorText.text = "Error: 208";
         SetSliderImages(soundButton, PlayerPrefsManager.GetSoundEffects());
         errorText.text = "Error: 209";
         SetSliderImages(musicButton, PlayerPrefsManager.GetMusic());
         errorText.text = "Error: 210";
         if (!SectionController.setCompleted && !fromGameToSections && !fromDaily)
         {
             errorText.text = "Error: 211";
             AnimateMenu();
             errorText.text = "Error: 212";
         }
     }
     catch (Exception exception)
     {
         UnityEngine.Debug.LogException(exception);
         errorText.gameObject.SetActive(value: true);
     }
 }