Ejemplo n.º 1
0
    public static void AuthenticateAsEmail(bool forceCreate = false)
    {
        GameObject         dialogObject = new GameObject("Dialog");
        AuthenticateDialog dialog       = dialogObject.AddComponent <AuthenticateDialog>();

        dialog.m_exampleAccountType = ExampleAccountType.Email;

        App.Bc.Client.AuthenticationService
        .AuthenticateEmailPassword(UtilValues.getEmail(), UtilValues.getPassword(), forceCreate,
                                   dialog.OnSuccess_Authenticate, dialog.OnError_Authenticate);
    }
Ejemplo n.º 2
0
    public static void AttachIdentityEmail()
    {
        GameObject           dialogObject = new GameObject("Dialog");
        AttachIdentityDialog dialog       = dialogObject.AddComponent <AttachIdentityDialog>();

        dialog.m_exampleAccountType = ExampleAccountType.Email;

        App.Bc.Client
        .IdentityService.AttachEmailIdentity(UtilValues.getEmail(), UtilValues.getPassword(),
                                             dialog.OnSuccess_AttachIndentity, dialog.OnError_AttachIdentity);
    }
    public static void DetachIdentityEmail(bool contiuneAsAnonymous = false)
    {
        GameObject           dialogObject = new GameObject("Dialog");
        DetachIdentityDialog dialog       = dialogObject.AddComponent <DetachIdentityDialog>();

        dialog.m_exampleAccountType = ExampleAccountType.Email;

        App.Bc.Client
        .IdentityService.DetachEmailIdentity(UtilValues.getEmail(), contiuneAsAnonymous,
                                             dialog.OnSuccess_DetachIdentity, dialog.OnError_DetachIdentity);
    }