using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class DisableDoubleClickSeeThroughTest : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        this.GetComponent<Button>().onClick.AddListener(OnButtonClick);
    }

    private void OnDestroy()
    {
        this.GetComponent<Button>().onClick.RemoveListener(OnButtonClick);
    }

    private void OnButtonClick()
    {
        SafetyAreaManager.Instance.DoubleClickShowSeeThrough = false;
    }
}