using UnityEngine;
public class Interactable : MonoBehaviour
{
[Header("Identification")]
public string interactableName = "Interactable";
///
/// Called when this interactable is selected/clicked
///
public virtual void OnSelect()
{
Debug.Log($"Interacted with: {interactableName}", gameObject);
}
///
/// Called when this interactable is deselected
///
public virtual void OnDeselect()
{
// Override in derived classes if needed
}
}