Integrate minigame and courses

This commit is contained in:
Dries Van Schuylenbergh
2023-03-08 19:07:57 +00:00
parent 7e98fea538
commit 852a17b0b4
56 changed files with 1431 additions and 1300 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UserButton : MonoBehaviour
{
[Header("User")]
// Reference to the user list, so we can extract the current user
public UserList userList;
[Header("UI References")]
// Reference to the avatar object
public Image avatar;
// Reference to the username object
public TMP_Text username;
void Start()
{
User user = userList.users[userList.currentUserIndex];
avatar.sprite = user.avatar;
username.text = user.username;
}
}