_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/ListBtn.cs
2024-11-26 15:48:20 +08:00

25 lines
493 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ListBtn : MonoBehaviour
{
public Button btn;
public AllHouseContro AllHouseContro;
// Start is called before the first frame update
void Start()
{
btn=GetComponent<Button>();
btn.onClick.AddListener(OnClickBtn);
}
public void OnClickBtn()
{
//AllHouseContro.GetInfo518();
ListPanel.instance.ShowPanel();
}
}