Exemple #1
0
 public void DeleteQuestionLine(Admin_QuestionLineEdit questionLine)
 {
     if (QuestionLineList.Contains(questionLine))
     {
         QuestionLineList.Remove(questionLine);
         Destroy(questionLine.gameObject);
     }
 }
Exemple #2
0
 private void SpawnQuestions(List <Question> questions)
 {
     NoQuestionsText.SetActive(false);
     if (questions.Count == 0)
     {
         NoQuestionsText.SetActive(true);
     }
     foreach (Question question in questions)
     {
         Admin_QuestionLineEdit newQuesiton = Instantiate(QuestionLine, QuestionParent, false).GetComponent <Admin_QuestionLineEdit>();
         newQuesiton.SetQuestion(question);
         QuestionLineList.Add(newQuesiton);
         newQuesiton.gameObject.SetActive(true);
     }
     QuestionListPanel.SetActive(true);
 }
Exemple #3
0
 public void DeclineButton()
 {
     transform.GetChild(0).gameObject.SetActive(false);
     QuestionToDelete = null;
 }
Exemple #4
0
 public void ConfirmDelete(Admin_QuestionLineEdit lineEdit)
 {
     QuestionToDelete = lineEdit;
     transform.GetChild(0).gameObject.SetActive(true);
 }