Exemplo n.º 1
0
        private static void ConfigurePlayerPrefs()
        {
            //CLOUD ANIMATION
            if (PlayerPrefs.HasKey(Config.PLAYER_PREFS_CLOUD_ANIMATION))
            {
                GameValuesConfig.SetCloudsAnimation(PlayerPrefs.GetString(Config.PLAYER_PREFS_CLOUD_ANIMATION) == "true");
            }
            else
            {
                GameValuesConfig.SetCloudsAnimation(true);
            }

            // CAMERA ROTATION ANIMATION
            if (PlayerPrefs.HasKey(Config.PLAYER_PREFS_ROTATION_CAMERA_ANIMATION))
            {
                GameValuesConfig.SetAndSaveRotationCameraAnimation(PlayerPrefs.GetString(Config.PLAYER_PREFS_ROTATION_CAMERA_ANIMATION) == "true");
            }
            else
            {
                GameValuesConfig.SetAndSaveRotationCameraAnimation(true);
            }

            // FADE ANIMATION
            if (PlayerPrefs.HasKey(Config.PLAYER_PREFS_FADE_ANIMATION))
            {
                GameValuesConfig.SetAndSaveFadeAnimation(PlayerPrefs.GetString(Config.PLAYER_PREFS_FADE_ANIMATION) == "true");
            }
            else
            {
                GameValuesConfig.SetAndSaveFadeAnimation(true);
            }
        }
 public void OnCameraRotationHasChanged()
 {
     GameValuesConfig.SetAndSaveRotationCameraAnimation(m_toggleCameraRotationButton.isOn, gameObject);
 }