{"id":385,"date":"2015-08-27T15:59:55","date_gmt":"2015-08-27T06:59:55","guid":{"rendered":"http:\/\/naochang.me\/?p=385"},"modified":"2021-10-17T18:42:56","modified_gmt":"2021-10-17T09:42:56","slug":"soomlaunity%e3%81%ab%e3%82%88%e3%82%8b%e3%80%81ios-android%e3%81%a7%e3%81%ae%e8%aa%b2%e9%87%91%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/stacstar.jp\/blog\/?p=385","title":{"rendered":"SOOMLA@Unity\u306b\u3088\u308b\u3001iOS, Android\u3067\u306e\u8ab2\u91d1\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"\/blog\/wp-content\/entries\/150722_SOOMLA\/image.png\" style=\"border: solid 2px #cccccc\"><\/p>\n<p>Unity\u3067IAP(\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1)\u3092\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u30e1\u30e2\u3002\uff08Store Version 1.8.2\uff09<br \/>\n\u307e\u305a\u3001\u3069\u3093\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308b\u306e\u304b\u306f<a href=\"http:\/\/blog.soom.la\/2014\/05\/unity-monetization-plugins-2014-update.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306bSOOMLA\u306f\u8ab2\u91d1\u5468\u308a\u306e\u51e6\u7406\u3060\u3051\u3067\u306f\u306a\u304f\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30a4\u30c6\u30e0\u7ba1\u7406\u3001\u30b7\u30e7\u30c3\u30d7\u7ba1\u7406\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u305d\u3053\u306b\u8ab2\u91d1\u6a5f\u80fd\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u611f\u3058\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u6301\u3061\u7269\u3092\u3059\u3079\u3066OS\u5074\u306e\u30c7\u30fc\u30bf\u9818\u57df\u306b\u4fdd\u5b58\u3057\u3066\u304f\u308c\u308b\u3002<br \/>\n\u30a2\u30d7\u30ea\u5185\u3067\u30b7\u30e7\u30c3\u30d7\u3001\u6301\u3061\u7269\u306e\u7ba1\u7406\u304c\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3060\u3051\u3069\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u3082\u540c\u3058\u3088\u3046\u306a\u7ba1\u7406\u3092\u3059\u308b\u5834\u5408\u306b\u306f\u305d\u306e\u8fba\u306e\u6a5f\u80fd\u306f\u4f7f\u308f\u305a\u8cfc\u5165\u51e6\u7406\u3060\u3051\u3046\u307e\u304f\u4f7f\u3046\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u306f<a href=\"https:\/\/prime31.com\/plugins\" target=\"_blank\" rel=\"noopener noreferrer\">prime31<\/a>\u306a\u3093\u304b\u3092\u4f7f\u3063\u305f\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002(\u6709\u6599 iOS\/Android\u305d\u308c\u305e\u308c$70\u304f\u3089\u3044)<br \/>\n\u4eca\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u3067\u30a2\u30a4\u30c6\u30e0\u3092\u7ba1\u7406\u3059\u308b\u3082\u306e\u306e\u3001SOOMLA\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3084\u30b3\u30e1\u30f3\u30c8\u304c\u30ad\u30ec\u30a4\u3060\u3063\u305f\u308a\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u983b\u7e41\u3060\u3063\u305f\u308aSOOMLA\u5074\u306e\u30b9\u30bf\u30c3\u30d5\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u6d3b\u767a\u3060\u3063\u305f\u306e\u3067SOOMLA\u3092\u9078\u3093\u3067\u307f\u305f\u3002<\/p>\n<p>SOOMLA\u3067(\u6d88\u8017\u578b)\u8ab2\u91d1\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5b9f\u88c5\u3067\u306e\u30e1\u30e2\u3002<br \/>\n\u305d\u3082\u305d\u3082\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1\u81ea\u4f53\u304c\u521d\u3081\u3066\u306a\u306e\u3067\u3001\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u4e0b\u6e96\u5099\u3002<br \/>\n\u307e\u305a\u306fiOS\u5074\u306e\u4e0b\u6e96\u5099\u3002<\/p>\n<p><!--more--><\/p>\n<h2>iOS\u4e0b\u6e96\u5099<\/h2>\n<h3>1. App ID\u306e\u8ffd\u52a0<\/h3>\n<p><a href=\"https:\/\/developer.apple.com\/account\/overview.action\" target=\"_blank\" rel=\"noopener noreferrer\">Developer Program &gt; Cerificates, Identifiers &#038; Profiles<\/a>\u304b\u3089\u3001\u306eIdentifiers\u306eApp IDs\u304b\u3089App ID\u3092\u8ffd\u52a0\u3002<br \/>\n\u3053\u306e\u969b\u306b\u3001App Services\u306eIn-App Purchase\u3092ON\u306b\u8a2d\u5b9a\u3002(\u304a\u305d\u3089\u304fOFF\u306b\u306f\u306a\u3089\u306a\u3044??\uff09<\/p>\n<h3>2. Provisioning Profile\u306e\u8ffd\u52a0<\/h3>\n<p>\u540cDeveloper Program\u304b\u3089Provisioning Profiles\u304b\u3089Develop\u7528\u306e\u4f5c\u6210\u3067\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fApp ID\u3092\u6307\u5b9a\u3057\u3066DL\u3002<\/p>\n<h3>3. \u30a2\u30d7\u30ea\u306e\u8ffd\u52a0<\/h3>\n<p><a href=\"https:\/\/itunesconnect.apple.com\/\" title=\"iTunes Connect\" target=\"_blank\" rel=\"noopener noreferrer\">iTunes Connect<\/a>\u304b\u3089\u30a2\u30d7\u30ea\u3092\u8ffd\u52a0\u3002<br \/>\nApp\u5185\u8ab2\u91d1\u30bf\u30d6\u304b\u3089\u3001Create New\u306b\u3066\u300c\u6d88\u8017\u578b\u300d\u3092\u9078\u629e\u3002<br \/>\n\u53c2\u7167\u540d\u306biTunes Connect\u306b\u8868\u793a\u3055\u308c\u308b\u308f\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u3092\u8a2d\u5b9a(\u516c\u958b\u3055\u308c\u306a\u3044)\u3002<br \/>\n\u88fd\u54c1ID\u306b\u306f\u5546\u54c1\u306eID\u3092\u8a2d\u5b9a\u3002\u3053\u306e\u969b\u306bBundle Identifier\u306e\u3088\u3046\u306b me.naochang.productname.itemname\u306a\u3069\u3068\u8a2d\u5b9a\u3059\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3002\uff08Android\u306e\u65b9\u306f\u5c0f\u6587\u5b57\u3057\u304b\u4f7f\u3048\u306a\u3044\u306e\u3067iOS\u3082\u305d\u308c\u306b\u63c3\u3048\u305f\u65b9\u304c\u826f\u3044\uff09<br \/>\n\u3053\u306e\u969b\u300c\u914d\u4fe1\u53ef\u80fd\u300d\u306b\u3057\u3001\u91d1\u984d\u3082\u6c7a\u3081\u3066\u304a\u304f\u3002<\/p>\n<h3>4. \u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u306e\u8a2d\u5b9a<\/h3>\n<p>iTunes Connect\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u5f79\u5272 &gt; Sandbox\u30c6\u30b9\u30bf\u30fc\u304b\u3089\u3001\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u8a8d\u8a3c\u304c\u3042\u308b\u306e\u3067\u5b9f\u5728\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304b\u3082\u3002<br \/>\n\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u767b\u9332\u3082\u3055\u305b\u3089\u308c\u305f\u3051\u3069\u3001iTunes\u3067\u4f5c\u3063\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u304b\u3089\u524a\u9664\u3002<\/p>\n<h3>5. iOS\u306b\u3066\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u30ed\u30b0\u30a4\u30f3<\/h3>\n<p>iOS\u306b\u3066\u3044\u307e\u4f5c\u3063\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u304f<\/p>\n<h2>Android\u4e0b\u6e96\u5099<\/h2>\n<p>1. Google Play Developer Console\u3078\u30ed\u30b0\u30a4\u30f3<br \/>\n<a href=\"https:\/\/play.google.com\/apps\/publish\/\" title=\"Google Play Developer Console\" target=\"_blank\" rel=\"noopener noreferrer\">Google Play Developer Console<\/a>\u3078\u30ed\u30b0\u30a4\u30f3\u3002<\/p>\n<h3>2. \u767b\u9332\u6599$25\u306e\u652f\u6255\u3044<\/h3>\n<p>\u50d5\u306f\u521d\u3081\u3066\u306e\u767b\u9332\u3060\u3063\u305f\u306e\u3067\u652f\u6255\u3044\u3092\u3057\u307e\u3057\u305f\u3002<br \/>\niOS Develop\u3068\u306f\u9055\u3063\u3066\u6bce\u5e74\u306e\u652f\u6255\u3044\u306f\u306a\u304f\u6700\u521d\u306e\u767b\u9332\u6599\u3060\u3051\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<h3>3. \u30a2\u30d7\u30ea\u306e\u8ffd\u52a0<\/h3>\n<p>\u300c\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u3092\u8ffd\u52a0\u300d\u304b\u3089\u65b0\u898f\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3002<\/p>\n<h3>4. apk\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\n<p>APK \u30d9\u30fc\u30bf\u7248\u30c6\u30b9\u30c8\u3078apk\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3002<br \/>\n\u30d9\u30fc\u30bf\u7248\u3067\u306e\u516c\u958b\u3092\u3057\u306a\u3044\u3068\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1\u30c6\u30b9\u30c8\u304c\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\n\u30b9\u30c8\u30a2(\u03b2)\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30c6\u30b9\u30c8\u3059\u308b\u306e\u3067\u306f\u306a\u3051\u308c\u3070(USB\u3067\u8ee2\u9001\u3059\u308b\u306a\u3069)\u3001\u5b9f\u88c5\u306f\u304d\u3061\u3093\u3068\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u3044\u3044\u306e\u3067\u3068\u306b\u304b\u304fapk\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3002<\/p>\n<h3>5. API KEY\u306e\u53d6\u5f97<\/h3>\n<p><del datetime=\"2015-09-11T09:04:04+00:00\">\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3001apk &gt; \u30d9\u30fc\u30bf\u7248\u30c6\u30b9\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u306a\u3089\u3076\u306e\u3067\u305d\u3061\u3089\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001APK \u30d5\u30a1\u30a4\u30eb SHA1 \u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u3068\u3044\u3046\u9805\u76ee\u3092\u5f8c\u3067Unity\u306eSOOMLA\u306e\u8a2d\u5b9a\u3067\u4f7f\u3046\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002<br \/>\n<\/del><br \/>\n<span style=\"color:#cc3333\">\u8ffd\u8a18\uff0915.09.11<\/span><br \/>\n\u601d\u3044\u3063\u304d\u308a\u81ea\u5206\u304c\u9593\u9055\u3048\u3066\u306f\u307e\u3063\u305f\u3053\u3068\u3092\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u3044\u305f&#8230;<br \/>\n\u4e0a\u8a18\u3067\u306f\u306a\u304f\u3001\u30b5\u30fc\u30d3\u30b9\u3068API =&gt; \u3053\u306e\u30a2\u30d7\u30ea\u306e\u30e9\u30a4\u30bb\u30f3\u30b9 \u30ad\u30fc \u3068\u3044\u3046\u304b\u306a\u308a\u9577\u3044\u6587\u5b57\u5217\u306e\u3053\u3068\u3067\u3059\u3002<br \/>\n\u4e0a\u8a18\u306e\u3088\u3046\u306b\u9593\u9055\u3048\u308b\u3068\u30a2\u30d7\u30ea\u304c\u843d\u3061\u307e\u3059&#8230;<br \/>\n<img decoding=\"async\" src=\"\/blog\/wp-content\/entries\/150722_SOOMLA\/iap_license_key.png\" width=\"800px\" style=\"border: solid 2px #cccccc\"><\/p>\n<h3>6. \u30a2\u30d7\u30ea\u5185\u30a2\u30a4\u30c6\u30e0\u306e\u8ffd\u52a0<\/h3>\n<p>\u3044\u307e\u307e\u3067\u6d88\u8017\u578b\u306e\u30a2\u30a4\u30c6\u30e0\u306fGoogle Play\u3067\u306f\u300c\u7ba1\u7406\u5bfe\u8c61\u5916\u306e\u30a2\u30a4\u30c6\u30e0\u300d\u3068\u3057\u3066\u6271\u308f\u308c\u3066\u3044\u305f\u304c\u300c\u7ba1\u7406\u5bfe\u8c61\u306e\u30a2\u30a4\u30c6\u30e0\u300d\u3068\u306a\u3063\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u3061\u3089\u3067iOS\u306e\u3068\u304d\u3068\u540c\u3058\u304fme.naochang.productname.itemname\u306a\u3069\u3068\u8a2d\u5b9a\u3002\uff08\u5927\u6587\u5b57\u306fNG\uff09<br \/>\n\uff08\u7ba1\u7406\u5bfe\u8c61\u3068\u3044\u3063\u3066\u3082\u304a\u305d\u3089\u304f1\u5ea6\u8cfc\u5165\u5f8c\u3001\u6d88\u8cbb\u3057\u3066\u3057\u307e\u3046\u3068\u7ba1\u7406\u3055\u308c\u306a\u3044\u3057\u3001\u8cfc\u5165\u72b6\u614b\u3067\u3055\u3089\u306b\u8cfc\u5165\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3046&#8230;???\uff09<br \/>\n\u307e\u305f\u30011\u5ea6\u4f5c\u3063\u305f\u30a2\u30a4\u30c6\u30e0ID\u306f\u540c\u3058\u30a2\u30d7\u30ea\u3067\u306f2\u5ea6\u3068\u4f7f\u3048\u306a\u3044\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<h3>7. \u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0<\/h3>\n<p>\u8a2d\u5b9a &gt; \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a73\u7d30 &gt; \u30e9\u30a4\u30bb\u30f3\u30b9 \u30c6\u30b9\u30c8\u306b\u30c6\u30b9\u30c8\u7528\u306egoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8ffd\u52a0\u3002<br \/>\nGoogle Play Developer Console\u3067\u4f7f\u3063\u3066\u3044\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306f\u30c0\u30e1\u306a\u3088\u3046\u3067\u5225\u9014\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5fc5\u8981\u3002<br \/>\n\u307e\u305f\u3001\u8ffd\u52a0\u3057\u3066\u53cd\u6620\u3055\u308c\u308b\u307e\u3067\u6570\u5206\u7a0b\u5ea6\u6642\u9593\u304c\u304b\u304b\u308b\u3002<\/p>\n<h2>SOOMLA<\/h2>\n<h3>1. SOOMLA\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Unity\u306e\u30a2\u30bb\u30c3\u30c8\u30b9\u30c8\u30a2\u3067\u3082\u3042\u308a\u307e\u3059\u304c\u3001github\u306f<a href=\"https:\/\/github.com\/soomla\/unity3d-store\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u3002<br \/>\n\u843d\u3068\u3057\u3066\u304d\u305f\u3084\u3064\u3092\u89e3\u51cd\u3057\u3066\u3001<br \/>\ndeploy\/out\/soomla-unity3d-core.unitypackage<br \/>\ndeploy\/out\/soomla-unity3d-store.unitypackage<br \/>\n\u3053\u3061\u3089\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3002\uff08\u4ee5\u524d\u306f\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u3063\u305f\uff09<br \/>\ncore\u306e\u65b9\u306fSOOMLA\u306e\u57fa\u672c\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001store\u306e\u65b9\u304c\u30b9\u30c8\u30a2\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\uff08\u4e21\u65b9\u5fc5\u8981\uff09<\/p>\n<p>\u3053\u3053\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3092\u5909\u3048\u308b\u3068\u3001\u8a2d\u5b9a\u753b\u9762\u304c\u898b\u3048\u306a\u304f\u306a\u308b\u306a\u3069\u4e0d\u90fd\u5408\u304c\u8d77\u304d\u305f\u306e\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306f\u5909\u3048\u306a\u3044\u65b9\u304c\u3088\u3055\u305d\u3046\u3002<\/p>\n<h3>2. SOOMLA\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u308b\u3068<br \/>\nWindow =&gt; Soomla =&gt; Edit Settings \u306e\u30e1\u30cb\u30e5\u30fc\u304c\u73fe\u308c\u308b\u306e\u3067\u958b\u304f\u3002<br \/>\nSoomla Secret \u3092\u8a2d\u5b9a\u3002<br \/>\n\u3053\u3053\u306f\u9069\u5f53\u306a\u6587\u5b57\u5217\u3067OK\u3060\u3051\u3069\u3001\u30c7\u30fc\u30bf\u306e\u6697\u53f7\u5316\u306e\u969b\u306e\u30ad\u30fc\u306b\u4f7f\u308f\u308c\u308b\u3082\u306e\u306a\u306e\u30671\u5ea6\u8a2d\u5b9a\u3057\u305f\u3089\u5909\u3048\u306a\u3044\u3002<br \/>\n\uff08\u5909\u3048\u308b\u3068\u30c7\u30fc\u30bf\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3057\u307e\u3046\u3068\u601d\u3046\u3002\uff09<br \/>\nGoogle Play\u306eAPI Key\u306f\u4e0a\u8a18\u300cAndroid\u306e\u4e0b\u6e96\u5099 5.API KEY\u306e\u53d6\u5f97\u300d\u3067\u30e1\u30e2\u3057\u305f\u5024\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3002<br \/>\nAndroid\/iOS\u5171\u306b\u3042\u308b\u3001Receipt Validation\u306b\u3064\u3044\u3066\u306fSOOMLA\u3067\u7528\u610f\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u30ec\u30b7\u30fc\u30c8\u306e\u30c1\u30a7\u30c3\u30af\u3092\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u8a2d\u5b9a\u3002\uff08\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u5206\u304b\u3089\u306a\u3044\uff09<\/p>\n<h3>3. \u4e0b\u6e96\u5099<\/h3>\n<p>Unity\u306eProject\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3042\u308b\u3001Soomla\/Prefabs\/CoreEvents, StoreEvents\u306e2\u3064\u3092Hierarchy\u306b\u914d\u7f6e\u3002<\/p>\n<h3>4. \u30af\u30e9\u30b9\u69cb\u9020<\/h3>\n<p><a href=\"\/blog\/wp-content\/uploads\/soomla_class_diagram.png\"><img decoding=\"async\" class=\"border\" src=\"\/blog\/wp-content\/uploads\/soomla_class_diagram.png\" alt=\"SOOMLA\u306e\u4e00\u90e8\u30af\u30e9\u30b9\u56f3\" width=\"800\" class=\"aligncenter size-full wp-image-436\" style=\"border: solid 2px #cccccc\" srcset=\"https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/soomla_class_diagram.png 1432w, https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/soomla_class_diagram-300x127.png 300w, https:\/\/stacstar.jp\/blog\/.\/wp-content\/uploads\/soomla_class_diagram-1024x433.png 1024w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/a><br \/>\n\u30af\u30e9\u30b9\u56f3\u306f\u5de6\u5074\u304c\u30b7\u30e7\u30c3\u30d7\u3067\u6271\u3046\u30a2\u30a4\u30c6\u30e0\u5468\u308a\u306e\u69cb\u9020(\u306e\u4e00\u90e8)\u3002<br \/>\nItem\u3068\u3044\u3046\u306e\u304c\u5546\u54c1\u3068\u901a\u8ca8\u3092\u5408\u308f\u305b\u305f\u3082\u306e\u3092\u3055\u3057\u3066\u3001Currency\u304c\u901a\u8ca8\u3001Good\u304c\u5546\u54c1\u3068\u3044\u3046\u611f\u3058\u3002<br \/>\n\u307e\u305a\u306f\u3001\u81ea\u5206\u306e\u30b7\u30e7\u30c3\u30d7\u306e\u7ba1\u7406\u3092\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u304f\u3066\u3001IStoreAssets\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u30b7\u30e7\u30c3\u30d7\u3092\u5b9a\u7fa9\u3002\u305d\u308c\u3092<br \/>\nSoomlaStore.Initialize(IStoreAssets store);<br \/>\n\u3068\u3044\u3046\u611f\u3058\u3067\u767b\u9332\u3002<\/p>\n<p>\u30a4\u30d9\u30f3\u30c8\u5468\u308a\u306f<br \/>\nStoreEvents.OnSoomlaStoreInitialized<br \/>\nStoreEvents.OnMarketPurchase<br \/>\n\u306a\u3069\u3092\u30a4\u30d9\u30f3\u30c8\u767b\u9332\u3059\u308c\u3070\u547c\u3070\u308c\u308b\u3002<\/p>\n<p>StoreInventory\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u6301\u3061\u7269\u3084\u30b7\u30e7\u30c3\u30d7\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7c21\u6613\u7684\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u30d8\u30eb\u30d1\u30fc\u30af\u30e9\u30b9\u3067\u901a\u5e38\u306e<br \/>\n\u30a2\u30a4\u30c6\u30e0\u8cfc\u5165 StoreInventory.BuyItem()<br \/>\n\u30a2\u30a4\u30c6\u30e0\u4ed8\u4e0e StoreInventory.GiveItem()<br \/>\n\u30a2\u30a4\u30c6\u30e0\u6d88\u8cbb StoreInventory.TakeItem()<br \/>\n\u306a\u3069\u304c\u547c\u3073\u51fa\u305b\u308b\u3002<\/p>\n<h3>5. \u30ec\u30b7\u30fc\u30c8\u756a\u53f7\u306e\u53d6\u5f97<\/h3>\n<p>\u30a2\u30a4\u30c6\u30e0\u3092\u8cfc\u5165\u3059\u308b\u3068Android\/iOS\u5171\u306b\u30ec\u30b7\u30fc\u30c8\u756a\u53f7\u304c\u3082\u3089\u3048\u308b\u3002<br \/>\n\u6d88\u8cbb\u7cfb\u30a2\u30a4\u30c6\u30e0\u3067\u3042\u308c\u3070\u3053\u308c\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u306b\u6e21\u3057\u3001\u4fdd\u5b58\u3057\u3064\u3064Apple\u3078\u9069\u6b63\u306a\u30ec\u30b7\u30fc\u30c8\u304b\u3069\u3046\u304b\u3092\u554f\u3044\u5408\u308f\u305b\u305f\u308a\u3059\u308b\u3002<br \/>\nAndroid\u3068iOS\u3067\u53d6\u5f97\u3059\u308b\u30ad\u30fc\u304c\u9055\u3046\u3093\u3067\u3059\u304c<\/p>\n<pre class=\"brush: unitycsharp; title: ; notranslate\" title=\"\">\r\n\/\/\/ &lt;summary&gt;\r\n\/\/\/ \u30ec\u30b7\u30fc\u30c8\u756a\u53f7.\r\n\/\/\/ &lt;\/summary&gt;\r\nstring signature;\r\n\r\n\/\/\/ &lt;summary&gt;\r\n\/\/\/ Start.\r\n\/\/\/ &lt;\/summary&gt;\r\nvoid Start() {\r\n\tStoreEvents.OnMarketPurchase += this.OnMarketPurchase;\r\n}\r\n\r\n\/\/\/ &lt;summary&gt;\r\n\/\/ \u30de\u30fc\u30b1\u30c3\u30c8\u306b\u3066\u5546\u54c1\u8cfc\u5165\u5f8c\u306b\u547c\u3070\u308c\u308b\u3002\r\n\/\/\/ &lt;\/summary&gt;\r\npublic void OnMarketPurchase(PurchasableVirtualItem pvi, string payload, Dictionary&lt;string, string&gt; extra) {\r\n\t#if UNITY_EDITOR\r\n\tthis.signature = extra&#x5B;&quot;orderId&quot;];\r\n\t#elif UNITY_ANDROID\r\n\tthis.signature = extra&#x5B;&quot;signature&quot;];\r\n\t#elif UNITY_IOS\r\n\tthis.signature = extra&#x5B;&quot;receiptBase64&quot;];\r\n\t#endif\r\n}\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u53d6\u5f97\u3067\u304d\u308b\u3002<br \/>\n\u53d6\u5f97\u3057\u305f\u30ec\u30b7\u30fc\u30c8\u306f<br \/>\n<a href=\"http:\/\/inside.pixiv.net\/entry\/2014\/12\/09\/111310\" target=\"_blank\" rel=\"noopener noreferrer\">pixiv inside | iOS\/Android\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1\u306e\u4e0d\u6b63\u306a\u30ec\u30b7\u30fc\u30c8\u306b\u3088\u308b\u6709\u6599\u4f1a\u54e1\u767b\u9332\u3092\u9632\u3050<\/a><br \/>\n\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u4e0d\u6b63\u3092\u9632\u3050\u305f\u3081\u306b\u5229\u7528\u3002<br \/>\nSOOMLA\u8a2d\u5b9a\u753b\u9762\u3067Receipt Validation\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068SOOMLA\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u30ec\u30b7\u30fc\u30c8\u306e\u7167\u5408\u3092\u884c\u3046\u304b\u306e\u8a2d\u5b9a\u3082\u3067\u304d\u308b\u3002\uff08\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3051\u3069\uff09<br \/>\n\u8cfc\u5165\u51e6\u7406\u3060\u3051\u3067\u306a\u304f\u3001\u6301\u3061\u7269\u7ba1\u7406\u3082\u884c\u308f\u308c\u308b\u306e\u3067\u8cfc\u5165\u5f8c\u6301\u3061\u7269\u306b\u30a2\u30a4\u30c6\u30e0\u306e\u4ed8\u4e0e\u304c\u884c\u308f\u308c\u305f\u5f8c\u3001StoreEvents.OnItemPurchased()\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30a2\u30a4\u30c6\u30e0\u3092\u7ba1\u7406\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u6301\u3061\u7269\u3084\u30b7\u30e7\u30c3\u30d7\u306e\u51e6\u7406\u3082\u3057\u3066\u304f\u308c\u3001\u5404OS\u3054\u3068\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u30c7\u30fc\u30bf\u3082\u4fdd\u6301\u3057\u3066\u304f\u308c\u308b\u306e\u3067SOOMLA\u306f\u3068\u3066\u3082\u4fbf\u5229\u3002<br \/>\n\u305f\u3060\u6301\u3061\u7269\u306e\u7ba1\u7406\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u884c\u3044\u305f\u3044\u306a\u3069\u3068\u306a\u308b\u3068(\u7279\u306b\u6d88\u8cbb\u7cfb\u30a2\u30a4\u30c6\u30e0\u306a\u3069)\u30b7\u30e7\u30c3\u30d7\u3084\u6301\u3061\u7269\u7ba1\u7406\u306e\u6a5f\u80fd\u306f\u90aa\u9b54\u306b\u611f\u3058\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u8ffd\u8a18\uff0915.09.12<br \/>\n<a href=\"\/blog\/?p=469\" title=\"SOOMLA@Unity\u306b\u3088\u308b\u30b9\u30c8\u30a2\u306e\u60c5\u5831\u53d6\u5f97(\u5024\u6bb5\u3068\u304b)\" target=\"_blank\" rel=\"noopener noreferrer\">SOOMLA@Unity\u306b\u3088\u308b\u30b9\u30c8\u30a2\u306e\u60c5\u5831\u53d6\u5f97(\u5024\u6bb5\u3068\u304b)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity\u3067IAP(\u30a2\u30d7\u30ea\u5185\u8ab2\u91d1)\u3092\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u30e1\u30e2\u3002\uff08Store Version 1.8.2\uff09 \u307e\u305a\u3001\u3069\u3093\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308b\u306e\u304b\u306f\u3053\u3061\u3089\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002 \u57fa\u672c\u7684\u306bSOOMLA\u306f\u8ab2\u91d1\u5468\u308a\u306e\u51e6\u7406\u3060\u3051\u3067\u306f\u306a\u304f\u3066\u3001\u30e6\u30fc\u30b6\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,6,2],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-android","category-ios","category-unity"],"_links":{"self":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=385"}],"version-history":[{"count":30,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":1940,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions\/1940"}],"wp:attachment":[{"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stacstar.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}