StellarXipher/Assets/tablet/TabletScript.cs
EthanPisani d479a27770
All checks were successful
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Successful in 5m17s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Successful in 5m19s
Build project / Publish to itch.io (StandaloneLinux64) (push) Successful in 5s
Build project / Publish to itch.io (StandaloneWindows64) (push) Successful in 5s
add mines puzzle game to unlock doors
2025-03-16 12:08:54 -04:00

37 lines
853 B
C#

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;
}
}