Exemplo n.º 1
0
 private void DrawDeleteButton()
 {
     if (GUILayout.Button("Delete Test", warningButtonStyle, GUILayout.Height(30)))
     {
         bool deleteTest = EditorUtility.DisplayDialog("Delete Test.",
                                                       "Are you sure you want to delete test " + TestID.stringValue + "?",
                                                       "Yes", "No");
         if (deleteTest)
         {
             QuestionDrawer.PrepareForDestruction();
             TestCreator.Instance.RemoveTest();
         }
     }
 }
Exemplo n.º 2
0
 private void DrawDeleteButton()
 {
     if (GUILayout.Button("Delete Question", warningButtonStyle, GUILayout.Height(30)))
     {
         bool deleteQuestion = EditorUtility.DisplayDialog("Delete Question.",
                                                           "Are you sure you want to delete this question?",
                                                           "Yes", "No");
         if (deleteQuestion)
         {
             QuestionDrawer.PrepareForDestruction();
             TestCreator.Instance.RemoveQuestion();
         }
     }
 }