public static SettingsProvider CreateServicesProvider() { SettingsProvider projectSettings = null; if (ShouldShowBuiltInProjectSettings(BuildService.instance)) { projectSettings = new CloudBuildProjectSettings(BuildService.instance.projectSettingsPath, SettingsScope.Project); } else if (ShouldShowFallbackProjectSettings(BuildService.instance)) { projectSettings = new FallbackProjectSettings(BuildService.instance, SettingsScope.Project); } return(projectSettings); }
public EnabledState(SimpleStateMachine <CloudBuildEvent> simpleStateMachine, CloudBuildProjectSettings provider) : base(k_StateNameEnabled, simpleStateMachine) { m_Provider = provider; ModifyActionForEvent(CloudBuildEvent.Disabling, HandleUnbinding); }