Universally challenged added

This commit is contained in:
2025-12-05 21:57:51 +00:00
parent 7a0fbeed7e
commit d2c18d2264
340 changed files with 109977 additions and 1616 deletions

View File

@@ -0,0 +1,26 @@

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
public class Buzzer : UdonSharpBehaviour
{
public PlayerSeat playerSeat;
public UniversallyChallengedManager ucManager;
public override void Interact()
{
if (!Networking.IsOwner(gameObject))
{
Networking.SetOwner(Networking.LocalPlayer, gameObject);
}
if (playerSeat != null && ucManager != null && ucManager.isBuzzersEnabled)
{
playerSeat.SendCustomNetworkEvent(VRC.Udon.Common.Interfaces.NetworkEventTarget.All, nameof(playerSeat.PlayBuzzerSound));
ucManager.isBuzzersEnabled = false;
ucManager.RequestSerialization();
}
}
}