All checks were successful
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Successful in 5m1s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Successful in 4m51s
Build project / Publish to itch.io (StandaloneLinux64) (push) Successful in 5s
Build project / Publish to itch.io (StandaloneWindows64) (push) Successful in 5s
32 lines
665 B
C#
32 lines
665 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 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;
|
|
|
|
}
|
|
}
|