How do I make colliders collide when Tİme Scale is zero?

I have trigger collider object and a script that checks if it collides with anything, and that script needs to work at all times. But I also have script that slows or stops time whenever needed. Slowing time seems to work but stopping time breaks the first script. I researched a lot, but I couldn’t find anything good.

I don’t think it will be useful but here is the first script.

public void OnTriggerEnter2D(Collider2D collision)
{
n++;
}
public void OnTriggerExit2D(Collider2D collision)
{
n–;
}

Hello.

If time is 0, collissions will not happens (Im not sure, but i supose), you can store the collided objects in variables of a script when time is running, so if you completly stops, you still have the last collided objects information (of course, delete that info On…Exit()

bye!