how to Pause game if score exceeds a number and display text and button to resume.

Hi Gurus
I want to create a intractable button and then add on click action to it. Its not working now. Is there any example for this pls. My objective is to pause the game once user reaches a score. Enable a button along with some text. Once player clicks this button i want to resume by adding LevelResume function under onclick. The problem currently is the button is not clickable. Currently i am attaching the Resume button to Level_manager script on levelmanager object.

Can you please help.

public class Level_manager : MonoBehaviour {
public GameObject resume;

	void Update()
	{
		if (ScoreManager.SavedScore == 10) 
		{

			resume.SetActive(true);
			Time.timeScale = 0;
		}
	}

	public void LevelResume()
	{
		Time.timeScale = 1;
		resume.SetActive(false);

	}
}

Your Update() checks score == 10 and sets timeScale to 0 even if you set it back to 1 it sets it to 0. You can simply prevent this by adding a bool to the if() statement.

public class Level_manager : MonoBehaviour 
{ 
     public GameObject resume;
     private bool isResumeShown;

     void Update()
     {
         if (ScoreManager.SavedScore == 10 && !isResumeShown) 
         {
             isResumeShown= true;
             resume.SetActive(true);
             Time.timeScale = 0;
         }
     }

     public void LevelResume()
     {
         Time.timeScale = 1;
         resume.SetActive(false);
     }
 }

My problem is same as eRlind, i went ahead with deactivating and activating required objects instead of pausing. Its looks much cleaner as the enemies will stop in their dying anim when the game is paused. Deactivating the game objects made more sense to me