ShanxiKnowledgeBase/SXElectricity Marketing 2.0/Assets/Zion/Scripts/YL/Examinationmode.cs

53 lines
1.3 KiB
C#

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;
/// <summary>
/// ¿¼ÊÔÁ·Ï°Í¼Æ¬
/// </summary>
public Image testpracticeimage;
/// <summary>
/// ¼ÓÔØ¿¼ÊÔÁ·Ï°Í¼Æ¬
/// </summary>
public Sprite practicesprite;
private void Awake()
{
Init();
}
/// <summary>
/// ³õʼ»¯Ò³Ãæ
/// </summary>
private void Init()
{
practicesprite = Resources.Load<Sprite>("UIpanel/¿¼ÊÔģʽ");
if (ScoreManager.Instance.Examinationpaper == Examinationpaper.Reviewexamination)
{
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);
}
}
void Start()
{
}
void Update()
{
}
}