Example #1
0
 public void SetQuestionData(QuestionSetting setting)
 {
     isClick = false;
     SetInteractable(true);
     audioSourceA.clip = setting.soundEffect_SelectA;
     audioSourceB.clip = setting.soundEffect_SelectB;
     autoSelect        = setting.autoSelect;
     autoTick          = setting.autoTime;
     maxAutoTick       = setting.autoTime;
     titleText.text    = setting.question.title;
     hintText.text     = setting.question.hint;
     contentText.text  = setting.question.content;
     selectTextA.text  = setting.question.selectA;
     selectTextB.text  = setting.question.selectB;
 }
Example #2
0
 /// <summary>
 /// 弹出问题对话框
 /// </summary>
 public void ShowQuestion(QuestionSetting setting)
 {
     mainQuestion.SetQuestionData(setting);
     mainQuestion.gameObject.SetActive(true);
     HoldQuestion();
 }