There are much better ways to do this, but if you're not a scripter then setting the timescale to 0 is probably your best bet.
C#
void OnClick()
{
if(Time.timeScale == 1) Time.timeScale = 0;
else Time.timeScale = 1;
}
If you make a C# script with that function and toss it on your button it should work. Like I said though, this could mess you up because Unity's Time is used for a lot of different things and stopping it's flow could stop your other scripts from functioning if they reference Time.time or anything similar.