void UpdateCamPos() { Block focusBlock = _grid.GetFocusBlock(); Vector3 blockPos = focusBlock.transform.position; Vector3 vector = -transform.forward * _distance; Vector3 camPos = vector + blockPos; transform.position = camPos; Debug.DrawRay(blockPos, -transform.forward * _distance + blockPos, Color.green); // Vector3 curPos = transform.position; // Vector3 smoothPos = Vector3.SmoothDamp(curPos, _targetPos, ref _smoothVelocity, _smoothTime); // transform.position = smoothPos; }