using TMPro; using UnityEngine; using UnityEngine.UI; namespace ZC { [UIType(UIType.AnswerUI)] public class AnswerUI : UIBase { private Transform Answer; private TMP_Text txt_Title; private TMP_Text txt_TrueOption; private TMP_Text txt_JXContent; private TMP_Text txt_Label0; private TMP_Text txt_Label1; private TMP_Text txt_Label2; private TMP_Text txt_Label3; private Toggle tog_Option0; private Toggle tog_Option1; private Toggle tog_Option2; private Toggle tog_Option3; private Button btn_Last; private Button btn_Close; private Button btn_Next; // private Transform Result; private TMP_Text txt_TrueCount; private TMP_Text txt_ScoreCount; private TMP_Text txt_FalseCount; private Button btn_TryAgain; private Button btn_Finish; private QuestionBankData _bankData; private int currentIndex = 0; public override void Init() { base.Init(); txt_Title = GetValue("txt_Title"); txt_TrueOption = GetValue("txt_TrueOption"); txt_JXContent = GetValue("txt_JXContent"); txt_Label0 = GetValue("txt_Label0"); txt_Label1 = GetValue("txt_Label1"); txt_Label2 = GetValue("txt_Label2"); txt_Label3 = GetValue("txt_Label3"); tog_Option0 = GetValue("tog_Option0"); tog_Option1 = GetValue("tog_Option1"); tog_Option2 = GetValue("tog_Option2"); tog_Option3 = GetValue("tog_Option3"); btn_Last = GetValue