Ejemplo n.º 1
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);
    }
Ejemplo n.º 2
0
    public static void AuthenticateAsUniversal_2(bool forceCreate = false)
    {
        GameObject dialogObject          = new GameObject("Dialog");
        WrapperAuthenticateDialog dialog = dialogObject.AddComponent <WrapperAuthenticateDialog>();

        dialog.m_exampleAccountType = ExampleAccountType.Universal_2;

        App.Bc
        .AuthenticateUniversal(UtilValues.getUniversal_2(), UtilValues.getPassword(), forceCreate,
                               dialog.OnSuccess_Authenticate, dialog.OnError_Authenticate);
    }
Ejemplo n.º 3
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.º 4
0
    public static void MergeIdentityUniversal_2()
    {
        GameObject          dialogObject = new GameObject("Dialog");
        MergeIdentityDialog dialog       = dialogObject.AddComponent <MergeIdentityDialog>();

        dialog.m_exampleAccountType = ExampleAccountType.Universal_2;

        App.Bc.Client
        .IdentityService.MergeUniversalIdentity(UtilValues.getUniversal_2(), UtilValues.getPassword(),
                                                dialog.OnSuccess_MergeIdentity, dialog.OnError_MergeIdentity);
    }