void Start() { //Here we set all the references to the needed components anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); steeringScript = GetComponent <RootMotionSteering>(); jumpScript = GetComponent <Jump>(); }
void Start() { //We assing the RootMotionSteering script and Animator component to our variables when the game starts steeringScript = GetComponent <RootMotionSteering>(); anim = GetComponent <Animator>(); }