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