mirror of
https://github.com/PiMaker/rvc.git
synced 2024-09-20 06:51:49 +00:00
20 lines
340 B
C#
Executable File
20 lines
340 B
C#
Executable File
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
public class NixStep : UdonSharpBehaviour
|
|
{
|
|
public Material vm_mat;
|
|
public bool Off;
|
|
|
|
void Start()
|
|
{
|
|
}
|
|
|
|
public override void Interact()
|
|
{
|
|
vm_mat.SetInt("_DoTick", Off ? 0 : vm_mat.GetInt("_DoTick") + 1);
|
|
}
|
|
}
|