How do I pause everything in the scene until the animation countdown prefabs done counting down in the scene

I have some countdown animations prefabs . I can only play the countdown animations in the scene if I drag the prefab in the scene and click on play . What I am trying to is play all 10 or 5 animation countdown prefab. But I want the scene to pause everything including the player and music until the countdown animations are done counting down in the scene. If have anymore questions just ask me.

From a coder’s perspective I would disable all scripts (or all scripts that move things or do the gameplay), freeze rigidbodies, disable audio components etc. until the countdown finished. Then just enable them again.

You can set timescale = 0
And Run static StartCourotine on static class to countdown and reset timescale = 1 after finish

code demo:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Test : MonoBehaviour
{

    void Start()
    {

    }

    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            Time.timeScale = 0;
            StartCoroutine(ExtentCountDown.CountDownWithoutTimeScale(1, 10, GetComponent<Text>()));
        }
    }
}


public static class ExtentCountDown
{
    public static IEnumerator CountDownWithoutTimeScale(int interval, int duration, Text txtView)
    {
        while (true)
        {
            float pauseEndTime = Time.realtimeSinceStartup + duration;
            while (Time.realtimeSinceStartup < pauseEndTime)
            {
                Debug.Log(Time.realtimeSinceStartup + " : " + pauseEndTime);
                txtView.text = (pauseEndTime - Time.realtimeSinceStartup).ToString("00");
                yield return 0;
            }
            Time.timeScale = 1;
            break;
        }
    }
}

there is a way coded.
You can spend the whole scene, this stops stop or you can make it that way ma slow pace.

if you use:

Time.timeScale=0; stop

Time.timeScale=1; play

Time.timeScale=0.5f; half speed

remember that this will stop all animations and corutinas but will not stop the update or fixedupdate.