暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. using UnityEditor;
  2. namespace Unity.PlasticSCM.Editor
  3. {
  4. internal static class VCSPlugin
  5. {
  6. internal static bool IsEnabled()
  7. {
  8. return GetVersionControl() == "PlasticSCM";
  9. }
  10. internal static void Disable()
  11. {
  12. SetVersionControl("Visible Meta Files");
  13. AssetDatabase.SaveAssets();
  14. }
  15. static string GetVersionControl()
  16. {
  17. return VersionControlSettings.mode;
  18. }
  19. static void SetVersionControl(string versionControl)
  20. {
  21. VersionControlSettings.mode = versionControl;
  22. }
  23. }
  24. }