|
@ -101,7 +101,7 @@ public class thirdPersonController : MonoBehaviour { |
|
|
animator.SetBool ("Grounded", grounded); |
|
|
animator.SetBool ("Grounded", grounded); |
|
|
animator.SetFloat("Run speed",new Vector3 (rigidbody.velocity.x, 0.0f,rigidbody.velocity.z ).magnitude); |
|
|
animator.SetFloat("Run speed",new Vector3 (rigidbody.velocity.x, 0.0f,rigidbody.velocity.z ).magnitude); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rigidbody.AddForce (new Vector3 (0.0f, -9.81f,0.0f)); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|