unity3d - How Stop movement of thirdpersoncontroller in Untiy C# -


well need know how stop movement of thirdpersoncontroller in unity , person controller default character of unity . try different methods , codes doesn't work.

well in summary character talk other character , appears dialogue of text in screen , in moment need stop movement of character or disable keys movement character.

please me , thanks...

in thirdpersoncharacter, try use following method.

public bool isstop;  public void move(vector3 move, bool crouch, bool jump) {     if (isstop) {         m_rigidbody.velocity = vector3.zero;         return;     } ... } 

the bool test. in computer, works. hope can help.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -