Advertisement
salahzar

U_ClickReveal.cs

Sep 11th, 2021
1,189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1.  
  2. using UdonSharp;
  3. using UnityEngine;
  4. using VRC.SDKBase;
  5. using VRC.Udon;
  6. using VRC.Udon.Common.Interfaces;
  7.  
  8. public class U_ClickReveal : UdonSharpBehaviour
  9. {
  10.     public GameObject Reveal;
  11.    
  12.      public override void Interact() {
  13.         SendCustomNetworkEvent(NetworkEventTarget.All,"Rivela");
  14.     }
  15.     public void Rivela()
  16.     {
  17.         Reveal.SetActive(!Reveal.activeSelf);
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement