Added comments to everything

This commit is contained in:
djkellerman
2025-04-18 15:54:50 -04:00
parent a0305ea0e9
commit 213bb2d14b
39 changed files with 3166 additions and 1796 deletions

View File

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