working on quest and interaction system

This commit is contained in:
2026-10-01 15:14:37 +01:00
parent 163939dab8
commit e8af8950e1
1198 changed files with 2503496 additions and 93 deletions

View File

@@ -0,0 +1,27 @@
using UnityEngine;
/// <summary>
/// Any object in the game that the player can interact with MUST implement this interface!
/// </summary>
public interface IInteractable
{
/// <summary>
/// The primary text that shows up in the UI (e.g. "Collect", "Open")
/// </summary>
string GetInteractText();
/// <summary>
/// The secondary text that shows up in the UI (e.g. "Apple", "Wooden Door")
/// </summary>
string GetSecondaryInteractText();
/// <summary>
/// Can the player currently interact with this? (E.g. false if a chest is already open)
/// </summary>
bool CanInteract();
/// <summary>
/// What happens when the player presses E!
/// </summary>
void Interact(GameObject player);
}