using UnityEngine; using UnityEngine.UI; using XFrame.Core.UI; public class IntroducePanel : XUIPanel { public IntroducePanel() : base(UIType.Normal, UIMode.HideOther, UICollider.Normal) { uiPath = "Prefabs/IntroducePanel"; } public override void Awake(GameObject go) { //this.transform.Find("btn-informition").GetComponent<Button>().onClick.AddListener(() => //{ // if (GameMain1.Intance != null) // { // this.transform.Find("btn-informition/Text").GetComponent<Text>().color = Color.blue; // this.transform.Find("Text1").GetComponent<Text>().text = GameMain1.Intance.text + " 训练时间:2020年5月8日 训练时长:8小时"; // } // else // { // Debug.LogError("MySingleton is not initialized!"); // } //}); this.transform.Find("btn-evaluate").GetComponent<Button>().onClick.AddListener(() => { ClosePanel<IntroducePanel>(); ShowPanel<EvaluatePanel>(); }); } }