24 lines
838 B
C#
24 lines
838 B
C#
using UdonSharp;
|
|
using VRC.Udon;
|
|
/// <summary>
|
|
/// Script from Reimajo, purchased at https://reimajo.booth.pm/
|
|
/// Join my Discord Server to receive update notifications & support for this asset: https://discord.gg/SWkNA394Mm
|
|
/// There is a version of this tool available with advanced protection, see my discord for more details.
|
|
/// If you have any issues, please contact me on Discord or Booth or Twitter https://twitter.com/ReimajoChan
|
|
/// </summary>
|
|
namespace ReimajoBoothAssets
|
|
{
|
|
/// <summary>
|
|
/// Desktop button on the admin Panel
|
|
/// </summary>
|
|
public class AdminPanelDesktopButton : UdonSharpBehaviour
|
|
{
|
|
public string _eventName;
|
|
public UdonBehaviour _targetScript;
|
|
public override void Interact()
|
|
{
|
|
_targetScript.SendCustomEvent(_eventName);
|
|
}
|
|
}
|
|
}
|