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

public class DestroySafetyAreaButtonTest : MonoBehaviour
{
    void Start()
    {
        this.GetComponent<Button>().onClick.AddListener(OnSavemapBtnClick);
    }

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

    private void OnSavemapBtnClick()
    {
        API_Module_SafetyArea.DestroySafetyArea();//.GSXR_SaveMap();
    }
}