Advertisement
salahzar

VRChat basic script

Feb 1st, 2021
1,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using UdonSharp;
  2. using UnityEngine;
  3. using VRC.SDKBase;
  4. using VRC.Udon;
  5.  
  6. public class Muro : UdonSharpBehaviour
  7. {
  8.     public GameObject gameObject;
  9.     void Start()
  10.     {
  11.        
  12.     }
  13.      public override void Interact()
  14.     {
  15.         gameObject.SetActive(!gameObject.activeSelf);
  16.     }
  17.     private void Update()
  18.     {
  19.         transform.Rotate(Vector3.up, 90f * Time.deltaTime);
  20.     }
  21.    
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement