i3e-asg2/Assets/Scripts/Interactable.cs

12 lines
202 B
C#
Raw Normal View History

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