27 lines
696 B
C#
27 lines
696 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDK3.UdonNetworkCalling;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
using VRC.Udon.Common.Interfaces;
|
|
|
|
public class NoPointsDeskManager : UdonSharpBehaviour
|
|
{
|
|
public NoPointsPlayerScreen[] playerScreens;
|
|
|
|
public void SendSuggestion(string suggestion)
|
|
{
|
|
if (playerScreens == null || playerScreens.Length == 0)
|
|
return;
|
|
|
|
for (int i = 0; i < playerScreens.Length; i++)
|
|
{
|
|
if (playerScreens[i] != null && playerScreens[i].claimedPlayerId != 0)
|
|
{
|
|
playerScreens[i].SendCustomNetworkEvent(NetworkEventTarget.All, "AddSuggestion", suggestion);
|
|
}
|
|
}
|
|
}
|
|
}
|