Implement demo day changes - DO NOT MERGE

This commit is contained in:
Dries Van Schuylenbergh
2023-04-17 22:15:26 +02:00
parent 5b4a3ec4e7
commit 2ba62e316f
31 changed files with 1140 additions and 1398 deletions

View File

@@ -44,6 +44,16 @@ public class UserCreationScreen : MonoBehaviour
/// </summary>
private List<Image> avatars = new List<Image>();
/// <summary>
/// Reference to the back button, so we can deactivate it when the user cannot go back (when no user is found at startup)
/// </summary>
public GameObject backButton;
/// <summary>
/// Boolean used to check whether the user can go back to the previous scene
/// </summary>
public static bool canGoBack = true;
/// <summary>
/// Start is called before the first frame update
@@ -51,6 +61,10 @@ public class UserCreationScreen : MonoBehaviour
void Start()
{
errorMessage.SetActive(false);
backButton.SetActive(canGoBack);
// Reset to default value
UserCreationScreen.canGoBack = true;
for (int i = 0; i < UserList.AVATARS.Count; i++)
{