Skip to content
Snippets Groups Projects

Added basic object interaction

Merged Alexander Gatland requested to merge alex into main
21 files
+ 1859
1
Compare changes
  • Side-by-side
  • Inline
Files
21
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Chest : MonoBehaviour, IInteractable
{
[SerializeField] private string _prompt;
public string InteractionPrompt => _prompt;
public bool Interact(Interactor interactor) {
Debug.Log("Opening chest!");
return true;
}
}
Loading