_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/lianghaoLL/Nice_numPanel.cs

35 lines
614 B
C#
Raw Normal View History

2024-11-25 22:58:30 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Nice_numPanel : MonoBehaviour
{
public Button CancleBtn;
public Button ConfirmBtn;
// Start is called before the first frame update
void Start()
{
CancleBtn.onClick.AddListener(CanclePanel);
ConfirmBtn.onClick.AddListener(ConfirmBuy);
}
void CanclePanel()
{
Destroy(this.gameObject);
}
void ConfirmBuy()
{
Destroy(this.gameObject);
}
// Update is called once per frame
void Update()
{
}
}