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

20 lines
399 B
C#
Raw Permalink Normal View History

2024-05-25 09:10:35 +03:00
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);
}
}