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

26 lines
518 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HistoryBtn : MonoBehaviour
{
public Button btn;
public HistoryPanel historyPanel;
public AllHouseContro AllHouseContro;
void Start()
{
btn=GetComponent<Button>();
btn.onClick.AddListener(OnClickBtn);
}
public void OnClickBtn()
{
AllHouseContro.GetInfo516();
AllHouseContro.GetInfo517();
historyPanel.ShowPanel();
}
}