private void AnimateMove(Vector3 move) { if (!_animator) { return; } Vector3 tempMovement = MyTransform.InverseTransformDirection(move); _animator.SetFloat("hor", tempMovement.x); _animator.SetFloat("vert", tempMovement.z); }