Wes xx build fix
This commit is contained in:
committed by
Louis Adriaens
parent
601cf38c61
commit
2fa54620ef
19
Assets/Common/Scripts/StartScreenManager.cs
Normal file
19
Assets/Common/Scripts/StartScreenManager.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class StartScreenManager : MonoBehaviour
|
||||
{
|
||||
|
||||
public UserList userList;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (!File.Exists(UserList.PATH) || userList.GetUsers().Count <= 0)
|
||||
{
|
||||
SceneManager.LoadScene("Accounts/Scenes/UserCreationScreen");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user