game: auth fixed
This commit is contained in:
parent
191b9a5476
commit
89668fb098
2 changed files with 7 additions and 1 deletions
|
@ -87,6 +87,12 @@ public class Backend : MonoBehaviour
|
|||
User = null;
|
||||
Session = null;
|
||||
await Client.Auth.SignOut();
|
||||
|
||||
menuButtons.authPanel.SetActive(true);
|
||||
menuButtons.profilePanel.SetActive(false);
|
||||
|
||||
menuButtons.loginEmailInput.text = "";
|
||||
menuButtons.loginPasswordInput.text = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -12,7 +12,6 @@ public class MenuButtons : MonoBehaviour
|
|||
/// Assigning Variables
|
||||
/// </summary>
|
||||
public TMP_InputField loginEmailInput;
|
||||
|
||||
public TMP_InputField loginPasswordInput;
|
||||
|
||||
public TextMeshProUGUI usernameText;
|
||||
|
@ -24,6 +23,7 @@ public class MenuButtons : MonoBehaviour
|
|||
|
||||
public GameObject authPanel;
|
||||
public GameObject menuPanel;
|
||||
public GameObject profilePanel;
|
||||
|
||||
/// <summary>
|
||||
/// Calling backend to log player in
|
||||
|
|
Loading…
Add table
Reference in a new issue