コード例 #1
0
 public void Init()
 {
     sr.sprite = spriteYes;
     // default
     SetFocus(ANSWER_TYPE.NO);
     selectedAnswer = ANSWER_TYPE.NAN;
 }
コード例 #2
0
 public void SetFocus(ANSWER_TYPE answerTypeNew)
 {
     focusAnswer = answerTypeNew;
     if (focusAnswer == ANSWER_TYPE.YES)
     {
         sr.sprite = spriteYes;
     }
     if (focusAnswer == ANSWER_TYPE.NO)
     {
         sr.sprite = spriteNo;
     }
 }
コード例 #3
0
 public void SetSelectedAnswer(ANSWER_TYPE answertype)
 {
     selectedAnswer = answertype;
 }