Blinking Text while Time.timeScale = 0f

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!

The animator by default uses scaled time. Click on update mode > Use Unscaled time. That should work.

EDIT: Oh my mistake, it’s a couroutine, wait for seconds uses scaled time. Instead use wait for real seconds, which doesnt use scaled time.