SettingData.cs 761 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using LitJson;
  4. using UnityEngine;
  5. public class SettingData
  6. {
  7. public void Save()
  8. {
  9. PlayerPrefs.SetString("GameSettings", JsonMapper.ToJson(this));
  10. PlayerPrefs.Save();
  11. }
  12. public bool CheatMode;
  13. public bool SubtitleVisiable = true;
  14. public float EffectsVolume = 100f;
  15. public float BGMVolume = 100f;
  16. public bool IsEffectsMute;
  17. public bool IsBGMMute;
  18. public string Language;
  19. public string AudioLanguage;
  20. public bool IsVibrate = true;
  21. public int VSync = 1;
  22. public int FPS = 60;
  23. public bool DynamicJoystickOpen;
  24. public Dictionary<string, KeyCode> KeyMap = new Dictionary<string, KeyCode>();
  25. public List<int> AchievementInfo = new List<int>();
  26. }