Initial commit
This commit is contained in:
17
Assets/Scripts/CustomButton.cs
Normal file
17
Assets/Scripts/CustomButton.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Marro.PacManUdon
|
||||
{
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
public class CustomButton : UdonSharpBehaviour
|
||||
{
|
||||
[SerializeField] private UdonBehaviour customEventReceiver;
|
||||
[SerializeField] private string eventName;
|
||||
public override void Interact()
|
||||
{
|
||||
customEventReceiver.SendCustomEvent(eventName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user