void UserLoginCheck() { if (auth.CurrentUser != _user) { bool signedIn = _user != auth.CurrentUser && auth.CurrentUser != null; if (!signedIn && _user != null) { Debug.Log("Signed out " + _user.UserId); _EmailField_Login.text = ""; _PasswordField_Login.text = ""; _EmailField_Account.text = ""; _PasswordField_Account.text = ""; _SceneMng.CloseOptionPopup(); _SceneMng.OpenLoginScene(); _SceneMng.CloseLobbyScene(); for (int i = 0; i < 10; i++) { _RecordBlockObjects[i].gameObject.SetActive(false); } for (int i = 0; i < 5; i++) { _UserRecordValue[i] = ""; } } _user = auth.CurrentUser; if (signedIn) { Debug.Log("Signed in " + _user.UserId); _SceneMng.CloseLoginScene(); _SceneMng.CloseUserAccountPopup(); _SceneMng.OpenLobbyScene(); UpdateRecordBlocks(); } } }