NewN_UAVPlane/Assets/Zion/Scripts/IntroducePanel.cs

32 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>();
});
}
}