Пример #1
0
 static void OnDisableVersionControl()
 {
     if (s_VersionControlInstance != null)
     {
         s_VersionControlInstance.OnDisableVersionControl();
     }
 }
Пример #2
0
 public static void SetVersionControl(IVersionControl instance)
 {
     s_VersionControlInstance = instance;
     // Initialize version control based on whether collab is enabled
     if (s_Instance != null)
     {
         if (s_Instance.IsCollabEnabledForCurrentProject())
         {
             instance.OnEnableVersionControl();
         }
         else
         {
             instance.OnDisableVersionControl();
         }
     }
 }