i3e-asg2/Assets/Scripts/Interactable.cs

12 lines
202 B
C#
Raw Permalink Normal View History

2024-06-06 08:55:22 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Interactable : MonoBehaviour
{
public virtual void Interact()
{
Destroy(gameObject);
}
}