using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class UI_MainTitlePanel : BasePanel { internal void Init() { var systemInfo = GameManager.DataMgr.GetSystemInfo(GameManager.ProcessMgr.id); switch ( GameManager.RunModelMgr.ModeType) { case E_ModeType.Study: GetControl("modelText (TMP)").text = "学习模式"; break; case E_ModeType.Practice: GetControl("modelText (TMP)").text = "练习模式"; break; case E_ModeType.Exam: GetControl("modelText (TMP)").text = "考试模式"; break; } GetControl("TopBgImg").sprite = GameManager.ResourcesMgr.Load(Const.UI_MainTitlePanel + systemInfo.titleName); } }