I use the following components,(they use rigidbody ) which are provided free from asset store, for managing a character. I need to pause my user when i press the esc button. I dont wont to pause the time.
ThirdPersonCharacter
ThirdPersonUserControl
I create a new script file for the character with the following code.
The problem is that when i press the escape button my character stop to get new inputs of moving, and holds the last known input.
In example, if my character is running and i press the escape button, the character continue to run and i cannot stop him until i re enable the ThirdPersonUserControl script by pressing the escape button.
What i need is, when i press the escape button to make my character in idle mode and not to move.
I’m guessing that ThirdPersonUserControl is a script that controls a Mechanim Animator… if that is the case you will also have to tell the Animator to stop.
I guess that the scripts have their own speed variables you will need to set them to zero as well. Unless it is using physics to move, then you will need to clear all the forces.