Stop all other things but be working specific things.

I made some functions, and it must solely performed when all other things stopping.

I tried Time.timescale =0, but it stops all things include my exceptions.

And update function does not work when stopping.
Also, my exceptions are not only be inside update function.

Actually, I make another camera, and when some conditions, I want to make that camera moving and some other things(player character shoot something) occurs, but all other things(enemy move, enemy missile’s position,etc) stops.

Anyone has good solutions for this?

Thanks in advance.

If you’re using C#, you can make a static class that would have some “IsPaused” property. In all your update methods you can do a quick check to see whether or not that property is set to true or false. The few scripts that you want to keep running you can choose to ignore that property.

Don’t know how exactly you would do that in JavaScript, probably a very similar method.