コード例 #1
0
 public void ReConnect()
 {
     this.m_state        = PlatformConnectState.Initializing;
     this.currentAccount = this.GetAccount();
     this.currentName    = this.GetName();
     if (this.currentAccount != null)
     {
         PlatformPlayerIdentity identity = new PlatformPlayerIdentity();
         identity.id       = this.currentAccount.playerId;
         identity.userName = this.currentName;
         this.m_identity   = identity;
         this.m_state      = PlatformConnectState.Connected;
         App.Binder.EventBus.PlatformProfileUpdated(PlatformConnectType.GameCenter, this.m_identity);
     }
     else
     {
         this.m_state = PlatformConnectState.Unconnected;
     }
 }
コード例 #2
0
        static GameCenterSocialSystemMocked()
        {
            GameCenterAuth auth = new GameCenterAuth();

            auth.playerId     = "G:10184998643";
            auth.bundleId     = "com.koplagames.kopla01";
            auth.publicKeyUrl = "https://static.gc.apple.com/public-key/gc-prod-2.cer";
            auth.signature    = "mNV/IjG6wZmXcnKEXrF7bMxnOuMHWlylNKMFaUstip4pRVF5HBAmPJDI0Rrf9V8GWI1oCZEYPqq/skUPdvtks/Y8qLGRnF7BDN4mZehf6DggZkTD91Hs54TRMkurEmQMTNUVqSLzokc8O93v1yW+Dc8VC0DcW6cVphohbEZn054398gE/KivDzVqjJ0IPQzXuYgrpGQFrxbm2rTBtbYBgc5Zr+I5ZDSHRz8kZBE7qoyPu2PYb9NWporiFW47ALYkj/sf64c477y5fD+uvC6/G0v7ZlU+taXkmXcfeF2YOCAse9OoXVUwTHRcD59KefI7cDaJJUQfQweiWXA/te7t3Q==";
            auth.salt         = "uISUpw==";
            auth.timestamp    = 0x153a7fe90b5L;
            gameCenter1       = auth;
            auth              = new GameCenterAuth();
            auth.playerId     = "G:1864360753";
            auth.bundleId     = "com.koplagames.kopla01";
            auth.publicKeyUrl = "https://static.gc.apple.com/public-key/gc-prod-2.cer";
            auth.signature    = "m4419Q0SpCey/IP6C9MRAysBSZrmgC/DQNq6LH/Sm9krz8OQBu+SKzHfBq3NPFtNta3m04YWl0cICkHyIR/zIRHdOzZDMsuZ+7FJxCfiuRj7z4O3Xkx5etFWe1Tj0gkXoDBN1E78z5yewo4bnprq8aa1itGlZc/HMLwbt2eqjU42XYSZBYC45LMCj7aynXhZTnMc6zlPWj1eBHXVebgb+owurPbll94kD8p/3g0ygSCwS7n95HDfzfFhPFDWrp8E4RBTeDPE3hsldE10jTmB3DWOHcudKrpCUGmDtEDyA2tuQMIhAmQehPva4b7QX71CGs27BzYLUJM1IJ1MBjEvHw==";
            auth.salt         = "nwwwjA==";
            auth.timestamp    = 0x153a861bfbfL;
            gameCenter2       = auth;
        }