BetterGitSettings.cs 719 B

12345678910111213141516171819202122232425
  1. using UnityEditor;
  2. using UnityEngine.Scripting;
  3. namespace Terra.Arbitrator.Settings
  4. {
  5. [Preserve]
  6. public static class BetterGitSettings
  7. {
  8. // Define unique keys to avoid conflicts in EditorPrefs.
  9. private const string UsernameKey = "Terra.Arbitrator.Username";
  10. private const string EmailKey = "Terra.Arbitrator.Email";
  11. public static string Username
  12. {
  13. get => EditorPrefs.GetString(UsernameKey, "");
  14. set => EditorPrefs.SetString(UsernameKey, value);
  15. }
  16. public static string Email
  17. {
  18. get => EditorPrefs.GetString(EmailKey, "");
  19. set => EditorPrefs.SetString(EmailKey, value);
  20. }
  21. }
  22. }