public void Init() { sr.sprite = spriteYes; // default SetFocus(ANSWER_TYPE.NO); selectedAnswer = ANSWER_TYPE.NAN; }
public void SetFocus(ANSWER_TYPE answerTypeNew) { focusAnswer = answerTypeNew; if (focusAnswer == ANSWER_TYPE.YES) { sr.sprite = spriteYes; } if (focusAnswer == ANSWER_TYPE.NO) { sr.sprite = spriteNo; } }
public void SetSelectedAnswer(ANSWER_TYPE answertype) { selectedAnswer = answertype; }