Created
August 20, 2020 08:06
-
-
Save aiya000/c99dde72754fcff3e111ba074189dff5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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