Exemplo n.º 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);
        }
Exemplo n.º 2
0
 internal static void SetupTeleport(VRTeleporter rightTeleporter, VRTeleporter leftTeleporter)
 {
     SetupTeleporter(leftTeleporter, LeftController);
     SetupTeleporter(rightTeleporter, RightController);
 }