private void VerificationSignatureRetrieved(string array) { string[] data; data = array.Split("|" [0]); ISN_PlayerSignatureResult res = new ISN_PlayerSignatureResult(data[0], data[1], data[2], data[3]); OnPlayerSignatureRetrieveResult(res); }
private void VerificationSignatureRetrieveFailed(string array) { string[] data; data = array.Split("|" [0]); ISN_Error error = new ISN_Error(); error.code = System.Convert.ToInt32(data[0]); error.description = data[1]; ISN_PlayerSignatureResult res = new ISN_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
void OnPlayerSignatureRetrieveResult(ISN_PlayerSignatureResult result) { Debug.Log("OnPlayerSignatureRetrieveResult"); if (result.IsSucceeded) { Debug.Log("PublicKeyUrl: " + result.PublicKeyUrl); Debug.Log("Signature: " + result.Signature); Debug.Log("Salt: " + result.Salt); Debug.Log("Timestamp: " + result.Timestamp); } else { Debug.Log("Error code: " + result.error.code); Debug.Log("Error description: " + result.error.description); } GameCenterManager.OnPlayerSignatureRetrieveResult -= OnPlayerSignatureRetrieveResult; }
void OnPlayerSignatureRetrieveResult (ISN_PlayerSignatureResult result) { Debug.Log("OnPlayerSignatureRetrieveResult"); if(result.IsSucceeded) { Debug.Log("PublicKeyUrl: " + result.PublicKeyUrl); Debug.Log("Signature: " + result.Signature); Debug.Log("Salt: " + result.Salt); Debug.Log("Timestamp: " + result.Timestamp); } else { Debug.Log("Error code: " + result.error.code); Debug.Log("Error description: " + result.error.description); } GameCenterManager.OnPlayerSignatureRetrieveResult -= OnPlayerSignatureRetrieveResult; }