示例#1
0
    public void OnIdentitySuccess(string identity)
    {
        var parsed = GCIdentity.ParseIdentity(identity);

        Debug.LogFormat("Key: {0}\nSign: {1}\nSalt: {2}\nTimestamp: {3}", parsed[0], parsed[1], parsed[2], parsed[3]);

        //  Connect with third-party application...
    }
示例#2
0
    void OnSocialAuthenticated(bool success)
    {
        Debug.Log("Player is authenticated: " + success);

        if (success)
        {
            Debug.Log("Generate identity...");

            //  WARNING: Put this GameObject name for receive callbacks
            GCIdentity.GenerateIdentity(this.name);
        }
    }