public void DeleteQuestionLine(Admin_QuestionLineEdit questionLine) { if (QuestionLineList.Contains(questionLine)) { QuestionLineList.Remove(questionLine); Destroy(questionLine.gameObject); } }
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); }
public void DeclineButton() { transform.GetChild(0).gameObject.SetActive(false); QuestionToDelete = null; }
public void ConfirmDelete(Admin_QuestionLineEdit lineEdit) { QuestionToDelete = lineEdit; transform.GetChild(0).gameObject.SetActive(true); }