33 lines
749 B
C#
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);
|
|
}
|
|
}
|