internal static void RunOnceWhenAccessTokenAndProjectIdAreInitialized() { if (string.IsNullOrEmpty(CloudProjectSettings.accessToken)) { return; } if (!SetupCloudProjectId.HasCloudProjectId()) { return; } EditorApplication.update -= RunOnceWhenAccessTokenAndProjectIdAreInitialized; if (!CollabPlugin.IsEnabled()) { SessionState.SetInt( IS_PROJECT_MIGRATED_ALREADY_CALCULATED_KEY, MIGRATED_NOTHING_TO_DO); return; } Execute( CloudProjectSettings.accessToken, SetupCloudProjectId.GetCloudProjectId()); }
static bool ShouldPlasticMenuBeEnabled() { if (CollabPlugin.IsEnabled()) { return(false); } return(mIsEnabled); }
static void DisableCollabIfEnabled(string projectPath) { if (!CollabPlugin.IsEnabled()) { return; } CollabPlugin.Disable(); mLog.DebugFormat("Disabled Collab Plugin on Project: {0}", projectPath); }
static void AfterWorkspaceMigrated() { SessionState.SetInt( IS_PROJECT_MIGRATED_ALREADY_CALCULATED_KEY, MIGRATED_NOTHING_TO_DO); CollabPlugin.Disable(); mLog.DebugFormat( "Disabled Collab Plugin after the migration for Project: {0}", ProjectPath.FromApplicationDataPath(Application.dataPath)); }
static void RunOnceWhenAccessTokenIsInitialized() { if (string.IsNullOrEmpty(CloudProjectSettings.accessToken)) { return; } EditorApplication.update -= RunOnceWhenAccessTokenIsInitialized; if (CollabPlugin.IsEnabled()) { return; } Execute(CloudProjectSettings.accessToken); }
static bool ShouldProjectBeMigrated() { if (SessionState.GetBool( CloudProjectDownloader.SHOULD_PROJECT_BE_DOWNLOADED_KEY, false)) { return(false); } if (!CollabPlugin.IsEnabled()) { return(false); } if (FindWorkspace.HasWorkspace(Application.dataPath)) { return(false); } return(true); }