18 lines
523 B
C#
18 lines
523 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();
|
|
}
|
|
}
|