Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / RemoveBlock.cs
@Rackday Rackday on 18 Aug 2024 340 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class RemoveBlock : MonoBehaviour
{

    public GameObject block;


    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            Destroy(block);
        }
    }
}