Working on entrance and building out first level

This commit is contained in:
2026-01-16 16:53:33 +00:00
parent 9cfaec3ea1
commit 4a37a76e9e
33 changed files with 4450 additions and 238 deletions

34
Assets/Scripts/Log.cs Normal file
View File

@@ -0,0 +1,34 @@
using UnityEngine;
using System.Collections;
using TMPro;
public class Log : MonoBehaviour
{
TextMeshProUGUI tmpText;
void Awake()
{
tmpText = GetComponent<TextMeshProUGUI>();
}
void Start()
{
tmpText.text = "";
tmpText.enabled = false;
}
public void WriteOutLog(string text, float letterDelay = 0.05f)
{
StartCoroutine(WriteLog(text, letterDelay));
}
IEnumerator WriteLog(string text, float letterDelay)
{
tmpText.text = "";
tmpText.enabled = true;
foreach (char letter in text)
{
tmpText.text += letter;
yield return new WaitForSeconds(letterDelay);
}
tmpText.enabled = false;
}
}