Example #1
0
        private void DrawBugReporterArea()
        {
            EditorGUILayout.BeginHorizontal();

            EditorGUILayout.PropertyField(_apiKeyProperty);

            if (GUILayout.Button("Verify", GUILayout.ExpandWidth(false)))
            {
                EditorUtility.DisplayDialog("Verify API Key", ApiSignup.Verify(_apiKeyProperty.stringValue), "OK");
            }

            EditorGUILayout.EndHorizontal();

            GUI.enabled = !string.IsNullOrEmpty(_apiKeyProperty.stringValue);

            EditorGUILayout.PropertyField(_enableBugReporterProperty);

            GUI.enabled = true;

            if (GUILayout.Button("Need API Key?"))
            {
                ApiSignupWindow.Open();
            }
        }
Example #2
0
 public void OnDisable()
 {
     _instance = null;
 }
Example #3
0
 public void OnEnable()
 {
     _instance = this;
 }