mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-28 06:34:49 +00:00
22 lines
377 B
C#
22 lines
377 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.UI;
|
|
|
|
public class Button_DestroyModal : MonoBehaviour
|
|
{
|
|
public Button btn;
|
|
public GameObject modal;
|
|
void Awake()
|
|
{
|
|
btn.onClick.AddListener(destroy);
|
|
}
|
|
|
|
private void destroy()
|
|
{
|
|
Destroy(modal);
|
|
|
|
}
|
|
}
|