From 5695b4036f95d55b1fb888bc6f4e17b9b1aa3b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=99=98?= Date: Fri, 1 May 2026 04:07:22 +0900 Subject: [PATCH] =?UTF-8?q?GM=20=EC=A0=9C=EC=9E=91=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/GameManager.cs | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 8b780c4..b28d1d5 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -1,16 +1,31 @@ +using System.Collections; +using TMPro; using UnityEngine; 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 void Start() { - + StartCoroutine(GameSet()); } - // Update is called once per frame - void Update() + private IEnumerator GameSet() { - + 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); } }