salahzar

Muro.cs

Sep 14th, 2021
1,130
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UdonSharp;
  2. using UnityEngine;
  3. using VRC.SDKBase;
  4. using VRC.Udon;
  5.  
  6. public class Muro : UdonSharpBehaviour
  7. {
  8.  
  9. public GameObject ganeObjecfg
  10.  
  11. void Start()
  12. {
  13. }
  14.  
  15. public override void Interact()
  16. {
  17. gameObject.SetActive(!gameObject.activeSelf);
  18. }
  19.  
  20. private void Update()
  21. {
  22. transform.Rotate(Vector3.up, 90f * Time.deltaTime);
  23. }
  24. }
  25.  
RAW Paste Data