- Home /
Question by
Quad Bore Studios · Sep 12, 2014 at 09:43 AM ·
mobilecharactercontroller
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.
Comment
Answer by ragnaros100 · Sep 12, 2014 at 10:07 AM
Just disable the component?
example:
GameObject movement;
movement.GetComponent<MovementScript>().enabled = false;
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Mobile - Jumping while moving - Standard Assets 0 Answers
Input.GetTouch isn't giving correct position 0 Answers
CharacterController Slope Problems 0 Answers
Making character dash forward 0 Answers