Help with show/hide and locking/unlocking cursor?

Been trying to turn off mouse lock and hide mouse when the pause screen is brought up (all three are separate code files)

Our current code is C Sharp for the pause menu and Javascript for the two mouse functions.

I’m trying to get this to all be in the pause menu code (if its easier to have in separate files I’ll do that instead)

Pause menu code

void LateUpdate () {
	    if (showfps || showfpsgraph) {
	        FPSUpdate();
	    }
 
		if (Input.GetKeyDown("p")) 
		{
	        switch (currentPage) 
			{
	            case Page.None: 
					PauseGame(); 
					Cursor.Show();
					break;
 
				case Page.Main: 
					if (!IsBeginning()) 
						UnPauseGame(); 
						Cursor.Hide();
					break;
 
				default: 
					currentPage = Page.Main;
					break;
	        }
	    }

Unity gives me compiler errors about ‘Cursor’ not having a definition for ‘Hide’ or ‘Show’. Haven’t attempted cursor lock code yet so any help with that as well would be appreciated.

Thanks,

Welcome to the unity forums!

i am not good with c# but i think that the error is that in unity it is Screen.showCursor = true or Screen.showCursor = false