void Initialize() { styleWarningLabel = new GUIStyle(GUI.skin.label); styleWarningLabel.normal.textColor = Color.red; if (settings == null) { settings = CloudBuildSettings.LoadSettings(); } }
CloudBuildSettings LoadOrCreateSettings() { var settings = CloudBuildSettings.LoadSettings(); if (settings == null) { settings = CloudBuildSettings.CreateSettingsAsset(); } targetConfigs = settings.targetConfigs.ToList(); return(settings); }
static void OpenByMenu() { var settings = CloudBuildSettings.LoadSettings(); if (settings == null) { CloudBuildSettingsWindow.Open(); } else { Open(); } }
private void Initialize() { if (settings == null) { settings = LoadOrCreateSettings(); } if (settings != null && !string.IsNullOrEmpty(settings.orgId) && !string.IsNullOrEmpty(settings.projectId) && !string.IsNullOrEmpty(settings.apiToken)) { ReloadConfigs(); } }
public CloudBuildApi(CloudBuildSettings settings) { this.settings = settings; }