Advertisement
salahzar

U_ClickTeleport.cs

Sep 11th, 2021
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.  
  2. using UdonSharp;
  3. using UnityEngine;
  4. using VRC.SDKBase;
  5. using VRC.Udon;
  6.  
  7. public class U_ClickTeleport : UdonSharpBehaviour
  8. {
  9.     public Transform Target;
  10.     public override void Interact()
  11.     {
  12.         Networking.LocalPlayer.TeleportTo(Target.position,Target.rotation);
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement