How can I make the animation continue while time is stopped?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class BlinkingText : MonoBehaviour
{
public TMP_Text gameoverText;
void Start() {
StartCoroutine(GameOverFlickerRoutine());
}
void Update() {
Time.timeScale = 0f;
}
IEnumerator GameOverFlickerRoutine() {
while(true) {
gameoverText.text = "GAME OVER";
yield return new WaitForSeconds(0.5f);
gameoverText.text = "";
yield return new WaitForSeconds(0.5f);
}
}
}
Thanks!