How to access a script from another script and change a boolean value?

I have a working pause script, but I do not know how to make the resume button work. Basically, when you press esc the pause script runs, sets time.timescale = 0f and bool paused = true. When I press the resume button, A GUITexture, it has to make time.timescale = 1f and also unpause. If on the click I could change the boolean value of paused into false again in another script, then resume button would work. How is that to be done in c#?

figured it out!