Загрузка данных


using UnityEngine;

public class ButtonDestroy : MonoBehaviour
{
    public GameObject platform;

    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player"))
        {
            Destroy(platform);
        }
    }
}