How to disable player movement (Mobile)

I am developing for mobile, I have searched Google and the forums and have found nothing. I am using the default mobile movement scripts (terrible, I know). I just want to disable player movement using a variable so I can re-enable it later (I’m making a pause menu). Thanks in advance.

Just disable the component?


GameObject movement;
movement.GetComponent<MovementScript>().enabled = false;