hey guys. I bought the mentioned pack from the asset store. Now I have built a character movement script on my own before I bought the pack. Now I want to edit the movement script from the pack with my own movement but I have no clue how to get it. I really need help with it.
This is a part of my movement script:
if (Input.GetKeyDown (KeyCode.LeftArrow) && rigidbody.isKinematic == true){
rigidbody.isKinematic = false;
rigidbody.velocity = new Vector3(0, 0, speed);
transform.rotation = Quaternion.LookRotation(rigidbody.velocity);
rigidbody.angularDrag = 1;
}
And this is the movement part of the pack’s script:
float h = Input.GetAxis("Horizontal");
float v = Input.GetAxis("Vertical");
anim.SetFloat("Speed", v);
anim.SetFloat("Direction", h);
anim.speed = animSpeed;
currentBaseState = anim.GetCurrentAnimatorStateInfo(0);