Files
HorrorStories/Assets/Scripts/IInteractable.cs
2026-08-25 16:24:29 +01:00

19 lines
546 B
C#

using UnityEngine;
/// <summary>
/// Interface for any object that the player can interact with.
/// </summary>
public interface IInteractable
{
/// <summary>
/// Called when the player interacts with this object (e.g. Left Click).
/// </summary>
/// <param name="interactor">The GameObject that initiated the interaction.</param>
void Interact(GameObject interactor);
/// <summary>
/// Returns the prompt description to display on HUD (e.g. "Open Door", "Pick up Key").
/// </summary>
string GetPrompt();
}