Пример #1
0
        private static void SetupTeleporter(VRTeleporter teleporter, VRInteraction.VRInput controller)
        {
            teleporter.BodyModel = Body;

            teleporter.VRInput      = controller;
            teleporter.VRInteractor = controller.VRInteractor;

            SetParent(teleporter.transform, teleporter.VRInteractor?.AttachTransform);
        }
Пример #2
0
 internal static void SetupTeleport(VRTeleporter rightTeleporter, VRTeleporter leftTeleporter)
 {
     SetupTeleporter(leftTeleporter, LeftController);
     SetupTeleporter(rightTeleporter, RightController);
 }