Beispiel #1
0
    /// <summary>
    /// When the corresponding button is clicked, login the gamer to its email account with a short code previously received by email.
    /// </summary>
    public void Button_LoginWithShortCode()
    {
        // Default hardcoded values to use if no InputField elements references are assigned
        string shortCode = null;

        // Check the password value
        if (loginWithShortCode_ShortCode == null)
        {
            Debug.LogWarning(string.Format(noReferenceFormat, "Login", "loginWithShortCode_ShortCode"));
        }
        else if (!string.IsNullOrEmpty(loginWithShortCode_ShortCode.text))
        {
            shortCode = loginWithShortCode_ShortCode.text;
        }

        // Call the template method
        LoginFeatures.Handling_LoginWithShortCode(shortCode);
    }