using UnityEngine; using UnityEngine.UI; using TMPro; public class BullsEyeGameManager : MonoBehaviour { public static BullsEyeGameManager Instance; public int score = 0; public float timeLimit = 60f; public TextMeshProUGUI scoreText; public TextMeshProUGUI timerText; private float timer; void Awake() { Instance = this; timer = timeLimit; } void Update() { if (timer > 0) { timer -= Time.deltaTime; timerText.text = "Time: " + Mathf.Ceil(timer).ToString(); } else { timerText.text = "Time: 0"; // Optional: Trigger game over } } public void AddScore() { score++; scoreText.text = "Score: " + score; } }