Skip to content

Instantly share code, notes, and snippets.

@aiya000
Created August 20, 2020 08:06
Show Gist options
  • Save aiya000/c99dde72754fcff3e111ba074189dff5 to your computer and use it in GitHub Desktop.
Save aiya000/c99dde72754fcff3e111ba074189dff5 to your computer and use it in GitHub Desktop.
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
public class MirroSwitchMock : UdonSharpBehaviour {
public GameObject mirror;
public override void Interact() {
if (this.mirror == null) {
Debug.Log("The mirror has not set.");
return;
}
this.mirror.SetActive(!this.mirror.activeSelf);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment