using TMPro; using UnityEngine; public class TabletScript : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created public bool puzzleComplete = false; [SerializeField] private TextMeshProUGUI targetText = null; void Start() { } // Update is called once per frame void Update() { // if user press enter if (Input.GetKeyDown(KeyCode.Return)) { // set puzzleComplete to true puzzleComplete = true; } } public void SetTargetText(string text) { targetText.text = text; } }