local #1

Merged
dotori merged 5 commits from local into main 2026-04-30 23:01:06 +00:00
Showing only changes of commit 5695b4036f - Show all commits

View File

@@ -1,16 +1,31 @@
using System.Collections;
using TMPro;
using UnityEngine; using UnityEngine;
public class GameManager : MonoBehaviour public class GameManager : MonoBehaviour
{ {
public TextMeshProUGUI text;
public GameObject readyPanel;
public GameObject ready;
// Start is called once before the first execution of Update after the MonoBehaviour is created // Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() void Start()
{ {
StartCoroutine(GameSet());
} }
// Update is called once per frame private IEnumerator GameSet()
void Update()
{ {
yield return new WaitForSeconds(3f);
text.text = "3";
yield return new WaitForSeconds(1f);
text.text = "2";
yield return new WaitForSeconds(1f);
text.text = "1";
yield return new WaitForSeconds(1f);
text.text = "GO!";
readyPanel.SetActive(false);
yield return new WaitForSeconds(3f);
ready.SetActive(false);
} }
} }