Add formatting rules

This commit is contained in:
Dries Van Schuylenbergh
2023-03-10 09:21:11 +00:00
parent 6d762a63f7
commit 26f3322e4e
30 changed files with 975 additions and 160 deletions

View File

@@ -2,18 +2,29 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Handles actions when a user presses the account button (upper left corner)
/// </summary>
public class UserButton : MonoBehaviour
{
[Header("User")]
// Reference to the user list, so we can extract the current user
/// <summary>
/// Reference to the user list, so we can extract the current user
/// </summary>
public UserList userList;
[Header("UI References")]
// Reference to the avatar object
/// <summary>
/// UI Reference to the avatar object
/// </summary>
public Image avatar;
// Reference to the username object
/// <summary>
/// UI Reference to the username object
/// </summary>
public TMP_Text username;
/// <summary>
/// Start is called before the first frame update
/// </summary>
void Start()
{
User user = userList.GetCurrentUser();