Example #1
0
 void Initialize()
 {
     styleWarningLabel = new GUIStyle(GUI.skin.label);
     styleWarningLabel.normal.textColor = Color.red;
     if (settings == null)
     {
         settings = CloudBuildSettings.LoadSettings();
     }
 }
Example #2
0
        CloudBuildSettings LoadOrCreateSettings()
        {
            var settings = CloudBuildSettings.LoadSettings();

            if (settings == null)
            {
                settings = CloudBuildSettings.CreateSettingsAsset();
            }
            targetConfigs = settings.targetConfigs.ToList();
            return(settings);
        }
Example #3
0
        static void OpenByMenu()
        {
            var settings = CloudBuildSettings.LoadSettings();

            if (settings == null)
            {
                CloudBuildSettingsWindow.Open();
            }
            else
            {
                Open();
            }
        }
Example #4
0
        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;
 }