30 lines
538 B
C#
30 lines
538 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace TcgEngine.UI
|
|
{
|
|
public class UIFrame : UIPanel
|
|
{
|
|
public Button uiFrameHideButton;
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Hide();
|
|
}
|
|
|
|
protected override void Start()
|
|
{
|
|
uiFrameHideButton.onClick.AddListener(OnUiFrameHide);
|
|
}
|
|
|
|
private void OnUiFrameHide()
|
|
{
|
|
Hide();
|
|
}
|
|
}
|
|
|
|
}
|