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;
|
User = null;
|
||||||
Session = null;
|
Session = null;
|
||||||
await Client.Auth.SignOut();
|
await Client.Auth.SignOut();
|
||||||
|
|
||||||
|
menuButtons.authPanel.SetActive(true);
|
||||||
|
menuButtons.profilePanel.SetActive(false);
|
||||||
|
|
||||||
|
menuButtons.loginEmailInput.text = "";
|
||||||
|
menuButtons.loginPasswordInput.text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -12,7 +12,6 @@ public class MenuButtons : MonoBehaviour
|
||||||
/// Assigning Variables
|
/// Assigning Variables
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TMP_InputField loginEmailInput;
|
public TMP_InputField loginEmailInput;
|
||||||
|
|
||||||
public TMP_InputField loginPasswordInput;
|
public TMP_InputField loginPasswordInput;
|
||||||
|
|
||||||
public TextMeshProUGUI usernameText;
|
public TextMeshProUGUI usernameText;
|
||||||
|
@ -24,6 +23,7 @@ public class MenuButtons : MonoBehaviour
|
||||||
|
|
||||||
public GameObject authPanel;
|
public GameObject authPanel;
|
||||||
public GameObject menuPanel;
|
public GameObject menuPanel;
|
||||||
|
public GameObject profilePanel;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calling backend to log player in
|
/// Calling backend to log player in
|
||||||
|
|
Loading…
Add table
Reference in a new issue