public void LerpToGuyCart( Transform newLerpPos, Animator cart, LerpToGuyCart.CartDirection newDir ) { lerpToStartPos = transform.position; lerpToEndPos = newLerpPos.position; lerpDuration = Vector3.Distance( lerpToStartPos, lerpToEndPos ) / moveSpeed; GameManager.s_instance.SwitchToCutscene(); isLerpingToGuyCart = true; currentCartAnimator = cart; cartDirection = newDir; }
public void LerpToGuyCart(Transform newLerpPos, Animator cart, LerpToGuyCart.CartDirection newDir) { lerpToStartPos = transform.position; lerpToEndPos = newLerpPos.position; lerpDuration = Vector3.Distance(lerpToStartPos, lerpToEndPos) / moveSpeed; GameManager.s_instance.SwitchToCutscene(); isLerpingToGuyCart = true; currentCartAnimator = cart; cartDirection = newDir; }