i3e-asg2/Assets/Scripts/Interactable.cs

12 lines
202 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Interactable : MonoBehaviour
{
public virtual void Interact()
{
Destroy(gameObject);
}
}