private void OnGeneratingSucceed( string PublicKeyUrl, ulong timestamp, string signature, string salt, string playerID, string alias, string bundleID) { Debug.Log("Succeeded authorization to gamecenter: \n" + "PublicKeyUrl=" + PublicKeyUrl + "\n" + "timestamp=" + timestamp + "\n" + "signature=" + signature + "\n" + "salt=" + salt + "\n" + "playerID=" + playerID + "\n" + "alias=" + alias + "\n" + "bundleID=" + bundleID); GCAuthData gcAuthData = new GCAuthData(); gcAuthData.publicKeyUrl = PublicKeyUrl; gcAuthData.timestamp = timestamp; gcAuthData.signature = signature; gcAuthData.salt = salt; gcAuthData.playerId = playerID; gcAuthData.alias = alias; gcAuthData.bundleId = bundleID; string jsonStr = JsonUtility.ToJson(gcAuthData); StartCoroutine(UploadDataForVerification(jsonStr, onResponse)); }
void SendTestData() { GCAuthData gcAuthData = new GCAuthData(); gcAuthData.publicKeyUrl = "fakeUrl"; gcAuthData.timestamp = 1234; gcAuthData.signature = "fakeSign"; gcAuthData.salt = "fakeSalt"; gcAuthData.playerId = "fakePlayer"; gcAuthData.alias = "fakeAlias"; gcAuthData.bundleId = "com.fake.test"; string jsonStr = JsonUtility.ToJson(gcAuthData); StartCoroutine(UploadDataForVerification(jsonStr, onResponse)); }