コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    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;
    }
コード例 #4
0
	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);
	}
コード例 #5
0
	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);

	}
コード例 #6
0
	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;



	}