using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Examinationmode : MonoBehaviour { public GameObject firstcontent, secondcontent, thirdcontent, numberfourcontent, fifthcontent, sixthcontent, seventhcontent, eighthcontent; /// /// 考试练习图片 /// public Image testpracticeimage; /// /// 加载考试练习图片 /// public Sprite practicesprite; private void Awake() { Init(); } /// /// 初始化页面 /// private void Init() { practicesprite = Resources.Load("UIpanel/考试模式"); if (ScoreManager.Instance.Subject == Subject.Performanceexamination) { testpracticeimage.sprite = practicesprite; firstcontent.SetActive(false); secondcontent.SetActive(false); thirdcontent.SetActive(false); numberfourcontent.SetActive(false); fifthcontent.SetActive(false); sixthcontent.SetActive(false); seventhcontent.SetActive(false); eighthcontent.SetActive(false); } } }