Files
5.24BuYu/Assets/MyGame/aa/UI/Home/Sub/UIHome_BY_MySelectRoomPanel.cs
T
2025-12-26 11:15:56 +08:00

33 lines
749 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHome_BY_MySelectRoomPanel : SubUIBase
{
public GameObject panel_PanelParent;
public Button panel_RoomItemPrefab;
public override void Awake()
{
btn_Close.onClick.AddListener(() =>
{
Hide();
});
panel_RoomItemPrefab.onClick.AddListener(() =>
{
GameManager.Instance.StartGame();
});
}
public override void Hide()
{
base.Hide();
panel_PanelParent.SetActive(true);
}
public override void Show(object args = null)
{
base.Show(args);
panel_PanelParent.SetActive(false);
}
}