ArabDesert/Assets/1-arab desert/udon/Teleport.cs

20 lines
399 B
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using UnityEngine.UI;
public class Teleport : UdonSharpBehaviour
{
private Button _button;
public Transform Object;
void Start()
{
_button = transform.GetComponent<Button>();
}
public void Teleport_()
{
Networking.LocalPlayer.TeleportTo(Object.position, Object.rotation);
}
}