예제 #1
0
        public override void OnFlowSettingsGUI()
        {
            if (Ads.settings == null)
            {
                Ads.settings = Ads.GetSettingsFile();
            }

            var settings = Ads.settings;

            if (settings == null)
            {
                EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (HeatmapSettings)."), MessageType.Error);
            }
            else
            {
                GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel);

                if (this.editor == null)
                {
                    this.editor = Editor.CreateEditor(settings) as AdsSettingsEditor;
                }

                if (this.editor != null)
                {
                    this.editor.OnInspectorGUI();
                }
            }
        }
예제 #2
0
 public override bool InstallationNeeded()
 {
     return(Ads.GetSettingsFile() == null);
 }