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