Pause without Pausing Menu

Hi all,

whats the proper way of pausing a game? ive tried a couple of things though i cant seem to NOT have the the menu pause with it. Ive had a good look around on the net though i cant seem to work it out.

using UnityEngine;
using System.Collections;

public class Pause : MonoBehaviour {

private bool isPaused = false;



public GameObject menu; // Assign in inspector


	void Update () 
	{
		if (Input.GetButtonDown("Start")) 
 			{
				 if (isPaused)
				 {
				 	///PAUSED
					Time.timeScale = 1;
					isPaused = false;
					
				 }
				 else
				 {
				 	//NOT PAUSED
					Time.timeScale = 0;
					isPaused = true;
					
				 }
			}
			menu.SetActive(isPaused);
	}
	
}

there is a lot of proposition here

the solution : Time.timeScale = 0.0 worked well for me.

Call this function:

public void Pause()
{
Time.timeScale = Time.timeScale == 0 ? 1 : 0;
i = i == 1 ? 0 : 1;
m_Pause.GetComponent().sprite = m_PlayPause*;*
if (i == 0)
{
if(m_PausePanel!=null)
m_PausePanel.SetActive(true);
}
else
{
if (m_PausePanel != null)
m_PausePanel.SetActive(false);
}
}