using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DuoXuan : MonoBehaviour { // Start is called before the first frame update public int[] 选项;//操作题0代表正确,1代表错误,多选题数字代表选项 //public List 临时选项; public GameObject next; public Button btn_提交; public bool a; void Awake() { for (int i = 0; i < 选项.Length; i++) { 选项[i] = -1; } } void Start() { btn_提交.onClick.RemoveAllListeners(); btn_提交.onClick.AddListener(() => 确认提交()); } public void 确认提交() { GameRoot.SubmitMoreChoiceAnswer(Windows.Instance.关卡, Windows.Instance.题号, 选项,a); // Windows.Instance.提交中.SetActive(true); Windows.Instance.题号++; if (next == null) { gameObject.SetActive(true); GameRoot.SubmitPassState(Windows.Instance.关卡, true); remake.a = 0; remakeTwo.a = 0; GameRoot.ReturnMenu(); /*AddListener(btn_已作答提交, GameRoot.ReturnMenu); 提交完毕.gameObject.SetActive(true);*/ } } }