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);
        }
    }
}