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

        dialog.m_exampleAccountType = ExampleAccountType.Universal_2;

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

        dialog.m_exampleAccountType = ExampleAccountType.Universal_2;

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

        dialog.m_exampleAccountType = ExampleAccountType.Universal_2;

        App.Bc.Client
        .IdentityService.DetachUniversalIdentity(UtilValues.getUniversal_2(), contiuneAsAnonymous,
                                                 dialog.OnSuccess_DetachIdentity, dialog.OnError_DetachIdentity);
    }