void Init(Vector3 endPositionVector, Quaternion endRotation) { //teleport to end position if (characterController) { characterController.transform.position = endPositionVector; Vector3 headRotation = UnityEngine.XR.InputTracking.GetLocalRotation(UnityEngine.XR.XRNode.Head).eulerAngles; characterController.transform.localRotation = Quaternion.Euler(endRotation.eulerAngles + new Vector3(0, -headRotation.y - 180.0f, 0)); //Quaternion.Euler(0.0f, -180.0f, 0.0f); characterController.transform.localScale = new Vector3(macroScale, macroScale, macroScale); } QualitySettings.shadowDistance = level0ShadowDistance; CameraScript().rotationY = 0.0f; KingelezCityRoot.SetActive(true); KingelezCityExteriorRoot.SetActive(false); //show end plate if (AllianzEndPlate != null) { AllianzEndPlate.SetActive(true); } hasEnded = true; //EndTimeline.Play(); MarkerScript.InitAllMarkers(); RenderSettings.fog = false; RenderSettings.skybox = skyboxWithoutGround; }