I have Time.Timescale =0 in two different place. One “Pause” at time of death, another “pause” is opening the menu. Timescale = 0 works for both, individually. However, if the player dies, and then you open or close the menu, it “un-pauses” for about 3 or 4 secs, then “pauses” again. Why the delay? I have the pause/open&close menu on a toggle. Don’t think the code for pause at death is the problem. Here is the code for the toggle:
if (Time.timeScale == 0)
Time.timeScale = 1;
else
Time.timeScale = 0;