add field functinallity

This commit is contained in:
Janis
2023-03-05 17:03:16 +01:00
parent 71447ac83e
commit 95b70a77db
15 changed files with 215 additions and 102 deletions

View File

@@ -7,8 +7,7 @@ public abstract class Interactable : MonoBehaviour
[Range(0f, 10f)]
private float radius = 2f; // radius of interaction
[SerializeField]
private string interactText = "Interact"; // text to display when player is in range
public abstract string interactText { get; } // text to display when player is in range
[SerializeField]
private string interactTextOutOfRange = "Out of range"; // text to display when player is out of range