Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }