private void Update() { if (currentLocation) { transform.position = currentLocation.GetScaledPoint(parent.position); transform.rotation = currentLocation.GetScaledRotation(parent); } else { transform.position = parent.position / OriginManager.skyboxScale; transform.rotation = parent.rotation; } }
private void Update() { if (currentLocation) { transform.position = currentLocation.GetScaledPoint(parentCameraTransform.position); transform.rotation = currentLocation.GetScaledRotation(parentCameraTransform); } else { transform.position = parentCameraTransform.position / scale; transform.rotation = parentCameraTransform.rotation; } }