{"id":573,"date":"2015-03-06T11:47:19","date_gmt":"2015-03-06T02:47:19","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=573"},"modified":"2015-03-06T11:47:19","modified_gmt":"2015-03-06T02:47:19","slug":"unity%e5%8b%89%e5%bc%b7%e4%bc%9a1%e6%97%a5%e7%9b%ae%e3%81%9d%e3%81%ae%ef%bc%92","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=573","title":{"rendered":"Unity\u52c9\u5f37\u4f1a1\u65e5\u76ee\u305d\u306e\uff12"},"content":{"rendered":"<p>\u3072\u3068\u3064\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5224\u5b9a\u3055\u305b\u308b\uff0c\u6587\u7cfb\u7684\u306a\u89e3\u7b54\u4f8b<\/p>\n<pre class=\"lang:default decode:true \">using UnityEngine;\r\nusing System.Collections;\r\n\r\npublic class loadlevel1 : MonoBehaviour {\r\n\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n\t\r\n\t}\r\n\t\r\n\t\/\/ Update is called once per frame\r\n\tvoid Update () {\r\n\t\r\n\t}\r\n\r\n\tpublic void OnClick(){\r\n\r\n\t\tif (Application.loadedLevelName == \"1stScene\") {\r\n\t\t\tApplication.LoadLevel (\"2ndScene\");\r\n\t\t}\r\n\t\tif (Application.loadedLevelName == \"2ndScene\") {\r\n\t\t\tApplication.LoadLevel (\"1stScene\");\r\n\t\t}\r\n\r\n\t}\r\n}\r\n<\/pre>\n<p>if\u3067\u7dcf\u5f53\u305f\u308a\uff08\u5168\u3066\u30c1\u30a7\u30c3\u30af\uff09\u3057\u307e\u3059\uff0e<\/p>\n<p>\uff12\u629e\u306a\u306e\u3067\uff0celse\u3092\u4f7f\u3048\u3070\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\uff0c\uff0c\uff0c<\/p>\n<p>\u3053\u308c\u3067\uff0c\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306fLevel2\u3067\u3082LV1\u3067\u3082\u5171\u7528\u3067\u304d\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<p>\u4ed6\u306b\u3082\u30a2\u30a4\u30c7\u30a2\u6b21\u7b2c\u3067\u306f\u3069\u3093\u306a\u30ec\u30d9\u30eb\u3067\u3082\u4f7f\u3044\u56de\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u304f\u3081\u308b\u3067\u3057\u3087\u3046\uff0e<strong>\uff11\u3064\u306e\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u3092<strong>\u4f7f\u3044\u56de\u3059<\/strong>\u3068\uff0c<strong>\u4fee\u6b63\u3082\u3057\u3084\u3059\u3044<\/strong>\u3067\u3059\u3088\u301c\uff08\u305f\u3060\u5236\u7d04\u3082\u751f\u307e\u308c\u308b\uff09\uff0eLV20\u307e\u3067\u3042\u308c\u307020\u500b\u4fee\u6b63\u3059\u308b\u3068\u304b\u3063\u3066\u3070\u304b\u3070\u304b\u3057\u3044\u3067\u3059\u3088\u306d\uff0c\uff0c<\/p>\n<h1>Android\u30a2\u30d7\u30ea\u306e\u4f5c\u6210<\/h1>\n<ol>\n<li>AndroidSDK\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff08\u30a8\u30c7\u30a3\u30bf\u7121\u3057\u306e\u7d14\u7c8b\u306aSDK\u3067OK\uff09<\/li>\n<li>Unity\u306eSDK\u306e\u5834\u6240\u3092Unity\uff1ePreference\u3067\u6307\u5b9a<\/li>\n<li>BuildSettings\u3092\u958b\u304d\uff0cAndroid\u3092\u9078\u3073\uff0cswitch platform\u3092\u9078\u629e<\/li>\n<li>\u30a2\u30d7\u30ea\u540d\u3084\u4f1a\u793e\u540d\u3092\u8a2d\u5b9a\u3057\uff0cbuild\u3059\u308b<\/li>\n<li>\u3067\u304d\u305f\u30a2\u30d7\u30ea\uff08.apk\uff09\u3092Android\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n<h1>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u767a\u8868<\/h1>\n<ol>\n<li>\u914d\u5e03\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u3063\u3066\u3001\u3001\u3001<\/li>\n<li>\u300c\u30ac\u30e9\u30ac\u30e9\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u305b\u3088\u300d<\/li>\n<li>\u30ac\u30e9\u30ac\u30e9\u3092\u4f5c\u308b\u7406\u7531\u3068\u3057\u3066\u306f\uff0c\uff0c<\/li>\n<li>\u97f3\uff0c\u753b\u50cf\uff0c\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5\uff0c\u30bf\u30c3\u30c1\u3000\u3068\u3044\u3063\u305f\u30c7\u30d0\u30a4\u30b9\u304c\u6301\u3064\u6a5f\u80fd\u3092\u5229\u7528\u3055\u305b\u308b\u304b\u3089<\/li>\n<li>\u69cb\u9020\u3068\u3057\u3066\u306f\u300c\u30aa\u30fc\u30d7\u30cb\u30f3\u30b0\u300d\u2192\u3000\u9078\u629e\u753b\u9762\u3000\u2190\u2192\u3000\u30ac\u30e9\u30ac\u30e9\u306e\u5b9f\u884c\u753b\u9762\uff08\u8907\u6570OK\uff09\u3000\u3068\u3044\u3046\uff13\u3064\u306e\u30b7\u30fc\u30f3\u3067\u69cb\u6210\u3057\u307e\u3059<\/li>\n<li>Android\u30c7\u30d0\u30a4\u30b9\u306f\u8cb8\u3057\u51fa\u3057\u307e\u3059<\/li>\n<\/ol>\n<h1>Android\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30e2\u30fc\u30c9ON\u306e\u65b9\u6cd5<\/h1>\n<ol>\n<li>\u8cb8\u51fa\u3057\u305f\u30bf\u30d6\u30ec\u30c3\u30c8\u306f<\/li>\n<li>\u30a2\u30d7\u30ea\uff1e\u8a2d\u5b9a\uff1e\u7aef\u672b\u60c5\u5831\uff1e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u60c5\u5831\uff1e\u30d3\u30eb\u30c9\u756a\u53f7\u3000\u306e\u90e8\u5206\u3092\u4f55\u56de\u304b\u30bf\u30c3\u30d7\u3059\u308b\u3068\u30c7\u30d9\u30ed\u30c3\u30d1\u30e2\u30fc\u30c9ON\u306b\u306a\u308b<\/li>\n<li>\u30bf\u30d6\u30ec\u30c3\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u305f\u30a2\u30d7\u30ea\uff08\u3000.apk\u30d5\u30a1\u30a4\u30eb\uff09\u306f\uff0c\u30db\u30fc\u30e0\uff1eASUS\u3092\u30bf\u30c3\u30d7\uff1e\u9ec4\u8272\u3044\u30d5\u30a9\u30eb\u30c0\u306e\u30a2\u30a4\u30b3\u30f3\u3067\u300c\u30d5\u30a1\u30a4\u30eb&#8230;\u300d\u3092\u30bf\u30c3\u30d7\uff1e\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30bf\u30c3\u30d7\uff1e\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u3092\u3057\u307e\u3059<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3068\u3064\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5224\u5b9a\u3055\u305b\u308b\uff0c\u6587\u7cfb\u7684\u306a\u89e3\u7b54\u4f8b using UnityEngine; using System.Collections; public class loadlevel1 : MonoBehaviour { &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=573\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Unity\u52c9\u5f37\u4f1a1\u65e5\u76ee\u305d\u306e\uff12<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=573"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions"}],"predecessor-version":[{"id":574,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions\/574"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}