public void MoveCamToPos(Transform toTransform) { followPlayer.DisableFollowScript(); isTopDown = false; cam.transform.position = Vector3.Lerp(cam.transform.position, toTransform.position, Time.deltaTime * camSpeed); cam.transform.rotation = toTransform.rotation; }