#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと2 どういうこういう そういうどういう
#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと2 どういうこういう そういうどういう
Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);
RaycastHit hit;
float distance = 100;
if (collider.Raycast (ray, out hit, distance)) {
Debug.Log ("Hit! Object name is " + hit.transform.name);
}
def in_app_purchase receipt_data
res = RestClient.post('https://buy.itunes.apple.com/verifyReceipt', {:'receipt-data' => receipt_data}.to_json)
res = JSON.parse(res)
if res['status'] == 21007
res = RestClient.post('https://sandbox.itunes.apple.com/verifyReceipt', {:'receipt-data' => receipt_data}.to_json)
res = JSON.parse(res)
end
string key = "NGUI_LOCALIZATION_KEY"
Localization l = GetComponent<Localization> ();
l.currentLanguage = SystemLanguage.Japanese.ToString();
Debug.Log(l.Get(key));
def in_app_purchase signature, receipt_data, base64_encoded_public_key
public_key = OpenSSL::PKey::RSA.new(base64_encoded_public_key)
if public_key.verify(OpenSSL::Digest::SHA1.new, Base64.decode64(signature), receipt_data)
# Success
else
# Failure
end
end
require 'apns'
# APNS.host = 'gateway.push.apple.com'
APNS.host = 'gateway.sandbox.push.apple.com' # sandbox url
APNS.pem = '/path/to/Certificates.pem'
APNS.pass = '<password>'
APNS.port = 2195
tokens = [