mirror of
https://github.com/evgen-app/steampunk-quest.git
synced 2024-11-15 04:46:35 +03:00
20 lines
447 B
C#
20 lines
447 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class DeleteAboutQuestOverlay : MonoBehaviour
|
|
{
|
|
void Start() {
|
|
Button btn = gameObject.GetComponent<Button>().GetComponent<Button>();
|
|
btn.onClick.RemoveAllListeners();
|
|
btn.onClick.AddListener(handleClick);
|
|
|
|
}
|
|
|
|
public void handleClick() {
|
|
Debug.Log("fuck");
|
|
Destroy(gameObject.transform.parent.gameObject);
|
|
}
|
|
}
|