Jamie Greunbaum 542e04afed - Replaced one skee-ball machine with two arcade machines.
- 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.
2026-02-11 02:58:41 -05:00

39 lines
779 B
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
namespace myro.arcade
{
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
public class Trigger : UdonSharpBehaviour
{
public UdonSharpBehaviour MainGameInstance;
public Joystick JoystickInstance;
public GameObject Toggleable;
void Start()
{
Toggleable.gameObject.SetActive(false);
}
public override void OnPlayerTriggerEnter(VRCPlayerApi player)
{
if (player.isLocal)
{
Toggleable.SetActive(true);
MainGameInstance.SendCustomEvent("OnPlayerEnteredArea");
}
}
public override void OnPlayerTriggerExit(VRCPlayerApi player)
{
if (player.isLocal)
{
Toggleable.SetActive(false);
MainGameInstance.SendCustomEvent("OnPlayerExitedArea");
}
}
}
}