Fix pause menu can only be displayed after game started

This commit is contained in:
alexis committed 2023-10-23 12:00:02 +02:00
1 parent 600545e0f1
commit d7a2ae1131
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -1,4 +1,3 @@
using System;
using System.Collections;
using TMPro;
using UnityEngine;
@@ -26,6 +25,7 @@ public class StartUI : MonoBehaviour
_text.SetText("1");
yield return new WaitForSecondsRealtime(1f);
Time.timeScale = 1f;
GameManager.GameStarted = true;
Destroy(gameObject);
}
}