private void Awake() { //roundTime = GameObject.Find("Controller").GetComponent<Controller>().roundTimeInSeconds; countdownTimer = GetComponent <MyCountdownTimer>(); continuousTimer = GetComponent <MyContinuousTimer>(); timeDisplay = GetComponent <TextMeshProUGUI>(); //countdownImagesGroup = }
void Awake() { timer = GetComponent <MyCountdownTimer>(); sprites = new SpriteRenderer[10]; for (int i = 1; i <= sprites.Length; i++) { sprites[i - 1] = GameObject.Find("count_" + i).GetComponent <SpriteRenderer>(); sprites[i - 1].enabled = false; } }