public override void SelectElement() { //reset all other elements first, since this is a SingleChoice Question if (!element.IsSelected) { CurrentQuestionBehaviour.ResetElements(); } //set Value (reset, if selected) element.IsSelected = true; SelectedSign.SetActive(element.IsSelected); //Open Text Input if necessary if (element.HasTextInput) { GameObject textInput = Instantiate(AdditionalTextInputPrefab); AdditionalTextInputBehaviour inputBehaviour = textInput.GetComponentInChildren <AdditionalTextInputBehaviour>(); inputBehaviour.Element = element; inputBehaviour.questionElementBehaviour = this; } }
public override void SelectElement() { //set Value (reset, if selected) if (!element.IsSelected) { element.IsSelected = true; //Open Text Input if necessary if (element.HasTextInput) { GameObject textInput = Instantiate(AdditionalTextInputPrefab); AdditionalTextInputBehaviour inputBehaviour = textInput.GetComponentInChildren <AdditionalTextInputBehaviour>(); inputBehaviour.Element = element; inputBehaviour.questionElementBehaviour = this; } } else { ResetElement(); } CheckedSign.SetActive(element.IsSelected); }