Files
Ipseity-Demo/Assets/Unheimlich_POC/Scripts/Handlers/Interactions/InteractableBase.cs
T

18 lines
544 B
C#

using UnityEngine;
namespace Unheimlich.Interactions.Core
{
/// <summary>
/// Base class for all interactable objects in the game.
/// Derived classes must implement Interact() to define interaction behavior.
/// </summary>
public abstract class InteractableBase : MonoBehaviour
{
[Header("Interaction Settings")]
[Tooltip("Text displayed when the player looks at the object")]
public string InteractionText = "Interact";
public abstract void Interact(GameObject gameObject);
}
}