using TMPro;
using UnityEngine;
using Game;
using Music;
using Player;
namespace Game
{
///
/// This class represents a player join card, displaying the player's number
/// and preview in the game lobby.
///
public class PlayerJoinCard : MonoBehaviour
{
///
/// The preview object representing the player.
///
public GameObject playerPreview;
///
/// The number assigned to the player.
///
public int playerNumber;
///
/// The text element displaying the player's number.
///
public TextMeshProUGUI playerNumberText;
///
/// Sets the player's number text when the game starts.
///
private void Start()
{
// Display the player's number on the join card
playerNumberText.text = playerNumber.ToString();
}
}
}