Added basic lobby
This commit is contained in:
19
Assets/Scripts/Lobby/LobbyClientDisplay.cs
Normal file
19
Assets/Scripts/Lobby/LobbyClientDisplay.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user