主页与Task任务处理
This commit is contained in:
29
Assets/TcgEngine/Scripts/Menu/UIFrame.cs
Normal file
29
Assets/TcgEngine/Scripts/Menu/UIFrame.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user