CarmenSandiego/Assets/UdonSharp/PlayerTeleporter.cs
Jamie Greunbaum cc7a4cd299 - Video player now works on auxilliary screens.
- The Chase modified to be much faster paced, and easier to read clues faster.
- Text on the host card during round 2 is hopefully a lot more readable now.
- Added simple teleports from backstage to the play area.
2025-08-01 23:34:55 -04:00

41 lines
1.1 KiB
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class PlayerTeleporter : UdonSharpBehaviour
{
[SerializeField] private Transform _HostTeleportLocation;
[SerializeField] private Transform _Player1TeleportLocation;
[SerializeField] private Transform _Player2TeleportLocation;
[SerializeField] private Transform _Player3TeleportLocation;
[Space]
[SerializeField] private Transform _ModemArrivalsTeleportLocation;
public void TeleportToHostPosition()
{
Networking.LocalPlayer.TeleportTo(_HostTeleportLocation.position, _HostTeleportLocation.rotation);
}
public void TeleportToPlayer1Position()
{
Networking.LocalPlayer.TeleportTo(_Player1TeleportLocation.position, _Player1TeleportLocation.rotation);
}
public void TeleportToPlayer2Position()
{
Networking.LocalPlayer.TeleportTo(_Player2TeleportLocation.position, _Player2TeleportLocation.rotation);
}
public void TeleportToPlayer3Position()
{
Networking.LocalPlayer.TeleportTo(_Player3TeleportLocation.position, _Player3TeleportLocation.rotation);
}
}