r2mods/ilspy_dump/ror2_csproj/RoR2.UI/PlayerCountText.cs

19 lines
337 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
namespace RoR2.UI;
public class PlayerCountText : MonoBehaviour
{
public Text targetText;
private void Update()
{
if ((bool)targetText)
{
targetText.text = $"{NetworkUser.readOnlyInstancesList.Count}/{NetworkManager.singleton.maxConnections}";
}
}
}