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 targetDoorText = null; [SerializeField] private TextMeshProUGUI targetDoorTimeLimit = 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 SetDoorTargetText(string text) { targetDoorText.text = text; } public void SetDoorTimeLimitText(string text) { targetDoorTimeLimit.text = text; } }