BetterGitSettings.cs 675 B

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