_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/ListBtn.cs
2024-11-25 21:25:28 +08:00

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