using TMPro; using UnityEngine.UI; namespace ZC { [UIType(UIType.AnswerUI)] public class AnswerUI : UIBase { 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 QuestionBankData _bankData; private int currentIndex = 0; public override void Init() { base.Init(); txt_Title = _uiGameObjectBinding.GetValue("txt_Title").GetComponent(); txt_TrueOption = _uiGameObjectBinding.GetValue("txt_TrueOption").GetComponent(); txt_JXContent = _uiGameObjectBinding.GetValue("txt_JXContent").GetComponent(); txt_Label0 = _uiGameObjectBinding.GetValue("txt_Label0").GetComponent(); txt_Label1 = _uiGameObjectBinding.GetValue("txt_Label1").GetComponent(); txt_Label2 = _uiGameObjectBinding.GetValue("txt_Label2").GetComponent(); txt_Label3 = _uiGameObjectBinding.GetValue("txt_Label3").GetComponent(); tog_Option0 = _uiGameObjectBinding.GetValue("tog_Option0").GetComponent(); tog_Option1 = _uiGameObjectBinding.GetValue("tog_Option1").GetComponent(); tog_Option2 = _uiGameObjectBinding.GetValue("tog_Option2").GetComponent(); tog_Option3 = _uiGameObjectBinding.GetValue("tog_Option3").GetComponent(); btn_Last = _uiGameObjectBinding.GetValue("btn_Last").GetComponent