using AX.MessageSystem; using AX.NetworkSystem; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// 战后调查(必填) /// public class UIViewQuestionnaire : UIView { public CommonButton ButtonEnter; // ScrollView public GameObject ScrollViewContent; // QuestionItem public GameObject QuestionItem; // Mask public GameObject Mask; // LoadingBar public Slider LoadingBar; // LoadingText public Text LoadingText; public override UIViewType ViewType { get { return UIViewType.Normal; } } public List Questions { get; set; } private void Awake() { if (!CheckZD()) { LoadPromptWin.Instance.LoadTextPromptWindow("未检测到中队,跳过打分环节",2f); gameObject.SetActive(false); return; } // 读取数据 Questions = ResourceManager.LoadJson>("Question.json"); if (ReportDataMgr.IsVictory) { // 去除失败的调查 Questions.RemoveAt(5); } else { // 去除胜利的调查 Questions.RemoveAt(6); } // GetNewQuestionContent(); // 根据数据创建Item StartCoroutine(CreateItem()); ButtonEnter.GetComponent