public void SignUp() { if (FindObjectOfType <DataController>().LogIn(Name, ID)) { LogOut(); return; } if (FindObjectOfType <DataController>().SignUp(Name, ID)) { WriteToPreviousGameDataFile(Name); loadLevel.LoadNextScene(); } }
public void Awake() { SetUpSingleton(); loadLevel = FindObjectOfType <LoadLevel>(); dataControl = FindObjectOfType <DataController>(); if (!LoggedOut()) { if (dataControl.SetUserLoggedIn(Name)) { loadLevel.LoadNextScene(); } } }