Demo day booth
This commit is contained in:
committed by
Jelle De Geest
parent
5b4a3ec4e7
commit
fcd8acad1e
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user