how to pause and resume scripts?

Hi,
how does one build a pause option into a unity project? I mean is there a way to freeze script execution and then resume it at a later time?

Disabling and then re-enabling the script should do what you want. (The way I’ve been handling this is to derive all ‘pausable’ scripts from a ‘pausable’ base class, and then when pausing and unpausing, find all objects of the base class type and enable/disable as needed.)