NewN_UAVPlane/Assets/Temp/Scripts/Viewdestructionpanl.cs

23 lines
414 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Viewdestructionpanl : MonoBehaviour
{
public Button Forkoff;//销毁按钮
void Start()
{
Forkoff.onClick.AddListener(() =>
{
Destroy(transform.gameObject);
});
}
// Update is called once per frame
void Update()
{
}
}