_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/ListBtn.cs

25 lines
491 B
C#
Raw Normal View History

2024-11-23 21:47:04 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ListBtn : MonoBehaviour
{
public Button btn;
2024-11-25 21:25:28 +08:00
public AllHouseContro AllHouseContro;
2024-11-23 21:47:04 +08:00
// Start is called before the first frame update
void Start()
{
btn=GetComponent<Button>();
btn.onClick.AddListener(OnClickBtn);
}
public void OnClickBtn()
{
2024-11-25 21:25:28 +08:00
AllHouseContro.GetInfo518();
2024-11-23 21:47:04 +08:00
ListPanel.instance.ShowPanel();
}
}