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