- Added Black Horse And The Cherry Tree by KT Tunstall to the horse playlist. - Added Buckin' My Horse by Sir Mix-A-Lot to the horse playlist.
28 lines
484 B
C#
28 lines
484 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
using VRC.Udon.Common;
|
|
|
|
namespace myro.arcade
|
|
{
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
|
public class Button : UdonSharpBehaviour
|
|
{
|
|
public UdonSharpBehaviour MainGameInstance;
|
|
public Joystick JoystickMesh;
|
|
public string EventName;
|
|
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Interact()
|
|
{
|
|
MainGameInstance.SendCustomEvent(EventName);
|
|
JoystickMesh.RequestJoystickRespawn();
|
|
}
|
|
}
|
|
} |