EVERYTHING

This commit is contained in:
niko
2026-06-01 17:19:55 +02:00
parent d063b81359
commit b62bac090b
1081 changed files with 1716544 additions and 0 deletions
@@ -0,0 +1,23 @@
using Photon.Pun;
using UnityEngine;
[DisallowMultipleComponent]
public sealed class GetPlayerCountBehavior : GuardedValueNodeBehavior
{
protected override void Start()
{
RecomputeCore();
}
public override void OnGraphUpdate()
{
RecomputeCore();
}
protected override void RecomputeCore()
{
int num = 0;
num = ((!PhotonNetwork.InRoom) ? 1 : ((PhotonNetwork.CurrentRoom != null) ? PhotonNetwork.CurrentRoom.PlayerCount : 0));
SetLocalOutputValueIfChanged("Count", BSValue.FromNumber(num));
}
}