19 lines
538 B
C#
19 lines
538 B
C#
using PashaBibko.PenguinChase.Network;
|
|
using UnityEngine.UI;
|
|
using UnityEngine;
|
|
|
|
namespace PashaBibko.PenguinChase.Lobby
|
|
{
|
|
public class LobbyClientDisplay : MonoBehaviour
|
|
{
|
|
[Header("References")]
|
|
[SerializeField] private Text PlayerCountDisplay;
|
|
[SerializeField] private Text PlayerNameDisplay;
|
|
|
|
public void SetText(GameNetworkClient client)
|
|
{
|
|
PlayerCountDisplay.text = $"[{client.LocalPlayerCount}]";
|
|
PlayerNameDisplay.text = client.PlayerName;
|
|
}
|
|
}
|
|
} |