YiHe_AllVersion/YHWeb/Assets/YHElectric/Scripts/UIPanel/DisplayBoardPanel.cs

38 lines
858 B
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 DG.Tweening;
using UnityEngine;
using XFrame.Core.UI;
namespace YHElectric
{
/// <summary>
/// 展板7个
/// </summary>
public class DisplayBoardPanel : XUIPanel
{
Transform bg;
public static bool Actived = false;
public DisplayBoardPanel() : base(UIType.Fixed, UIMode.None, UICollider.None)
{
uiPath = "UI/UIPanelPrefab/DisplayBoardPanel";
}
public override void Awake(GameObject go)
{
bg = transform.Find("BG");
}
public override void Active()
{
base.Active();
OnEnter();
}
void OnEnter()
{
Actived = true;
this.gameObject.SetActive(true);
}
public override void Hide()
{
Actived = false;
}
}
}