24 lines
473 B
C#
24 lines
473 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();
|
||
|
historyPanel.ShowPanel();
|
||
|
}
|
||
|
}
|