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

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

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