38 lines
858 B
C#
38 lines
858 B
C#
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;
|
||
}
|
||
}
|
||
}
|