private void AddNewAnswer() { AnswerEditScrollViewElement newContentElementScript = Instantiate(_answerPrefab, _content); newContentElementScript.SetAnswer(null); }
private void SetScrollView() { Question question = _dataBase.Questions.Find(q => q.QuestionName == _questionName); if (question != null) { foreach (Answer answer in question.Answers) { AnswerEditScrollViewElement newContentElementScript = Instantiate(_answerPrefab, _content); newContentElementScript.SetAnswer(answer); } } }