{"id":81583,"date":"2018-09-27T11:49:41","date_gmt":"2018-09-27T02:49:41","guid":{"rendered":"https:\/\/www.webtech.co.jp\/help\/?page_id=81583"},"modified":"2019-10-11T10:22:21","modified_gmt":"2019-10-11T01:22:21","slug":"unity_chara_action","status":"publish","type":"page","link":"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity_chara_action\/","title":{"rendered":"Unity\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u52d5\u304b\u3059\u65b9\u6cd5"},"content":{"rendered":"<p>Unity\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8868\u793a\u3092\u884c\u3044\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5909\u5316\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf<\/strong><br \/>\n<a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/download\/sample\/#character_anime\">\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a> <br \/><span style=\"font-size: small;\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf \u3068\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/span><\/li>\n<li><strong>\u518d\u751f\u3059\u308bUnity\u306e\u74b0\u5883<\/strong><br \/>\n<a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/download\/forprogrammer\/#SS6P_Unity\">SS6Player for Unity v1.0.36<\/a><br \/>\nUnity 2018.1.3f1<\/li>\n<\/ul>\n<h4>\u76ee\u6b21<\/h4>\n<ul>\n<li><a href=\"#howto\">\u4f5c\u6210\u624b\u9806<\/a>\n<ul>\n<li><a href=\"#howto_01\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u6e96\u5099<\/a><\/li>\n<li><a href=\"#howto_02\">\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/a><\/li>\n<li><a href=\"#howto_03\">\u30d5\u30a9\u30eb\u30c0\u3092\u6e96\u5099<\/a><\/li>\n<li><a href=\"#howto_04\">sspj\u30a4\u30f3\u30dd\u30fc\u30c8<\/a><\/li>\n<li><a href=\"#howto_05\">\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210<\/a><\/li>\n<li><a href=\"#howto_06\">\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u5236\u5fa1\u306e\u6e96\u5099<\/a><\/li>\n<li><a href=\"#howto_07\">\u30ab\u30e1\u30e9\u306e\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#howto_08\">\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u52d5\u304b\u3059<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#script\">\u30b9\u30af\u30ea\u30d7\u30c8\u89e3\u8aac<\/a><\/li>\n<li><a href=\"#relation\">\u95a2\u9023\u30da\u30fc\u30b8<\/a><\/li>\n<\/ul>\n<h2><a id=\"howto\"><\/a>\u4f5c\u6210\u624b\u9806<\/h2>\n<h3><a id=\"howto_01\"><\/a>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u6e96\u5099<\/h3>\n<p>\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4e0b\u8a18\u30da\u30fc\u30b8\u3088\u308a \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/download\/sample\/#character_anime\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf \uff1e \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a><br \/><span style=\"font-size: small;\">\u76f4\u3050\u4f7f\u3048\u308b\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p>\u300c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u300d\u3092\u62bc\u3059\u3068\u3001OPTPiX_SpriteStudio_Animation_Template_20180220.zip \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u306e\u3067\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u5c55\u958b\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092<br \/>\n<strong>E:&yen;SpriteStudioData&yen;OPTPiX_SpriteStudio_Animation_Template<\/strong> <br \/>\n\u306b\u4fdd\u5b58\u3057\u3066\u8aac\u660e\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3><a id=\"howto_02\"><\/a>\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/h3>\n<p>Unity\u3092\u958b\u304d\u3001File\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cNew Project\u300d\u3092\u9078\u629e\u3057\u3001\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002SS6Player for Unity \u3092\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0<br \/>\nSS6Player for Unity \u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u52a0\u3048\u307e\u3059\u3002<br \/>\n\u8a73\u3057\u3044\u65b9\u6cd5\u306f\u300cUnity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">SS6Player For Unity\u3067Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<h3><a id=\"howto_03\"><\/a>\u30d5\u30a9\u30eb\u30c0\u3092\u6e96\u5099<\/h3>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">\n<p>1.\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5165\u308c\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u3051\u307e\u3059\u3002<br \/>\nProject\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u300cCreate\u300d\u2192\u300cFolder\u300d\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f Assets \u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b Sample \u3068\u3044\u3046\u540d\u79f0\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/01folderCreate_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/01folderCreate_01.png\" alt=\"\" width=\"572\" height=\"387\" class=\"alignnone size-full wp-image-81584\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">\n<p>2.\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d0d\u3081\u308b\u30d5\u30a9\u30eb\u30c0\u3068\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Resources<br \/>\n\u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u307e\u3059<\/li>\n<li>Script<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d0d\u3081\u307e\u3059<\/li>\n<\/ul>\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/01folderCreate_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/01folderCreate_02.png\" alt=\"\" width=\"401\" height=\"187\" class=\"alignnone size-full wp-image-81585\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote>\n<p>\u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u308b\u30d5\u30a9\u30eb\u30c0\u306e\u7db4\u308a\u306b\u6c17\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002\u300c<strong>Resources<\/strong>\u300d\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3059\u308b\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n\u30d5\u30a9\u30eb\u30c0\u540d\u306b\u8aa4\u308a\u304c\u3042\u308b\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u53c2\u7167\u3067\u304d\u305a\u3001NULL\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<h3><a id=\"howto_04\"><\/a>sspj\u30a4\u30f3\u30dd\u30fc\u30c8<\/h3>\n<p>\u518d\u751f\u3057\u305f\u3044sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u8a73\u3057\u3044\u624b\u9806\u306f\u300cUnity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u300d\u306e\u4e0b\u8a18\u9805\u76ee\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity\/#unity_sspj\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\uff1esspj\u3092Unity\u306b\u53d6\u308a\u8fbc\u3080<\/a><br \/><span style=\"font-size: small;\">SpriteStudio Ver.6\u306e\u30c7\u30fc\u30bf\u3092Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<table border=\"1\" style=\"border-collapse: collapse; width: 104.08%;\">\n<tbody>\n<tr style=\"height: 60px;\">\n<td style=\"width: 54.08%; height: 60px;\">1.\u30a4\u30f3\u30dd\u30fc\u30c8\u5148\u306f\u3001\u5148\u7a0b\u6e96\u5099\u3057\u305f<br \/>\nAssets\/Sample\/Resources<br \/>\n\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_01.png\" alt=\"\" width=\"345\" height=\"274\" class=\"alignnone size-full wp-image-81587\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 54.08%;\">2.Tools \uff1e SpriteStudio6 \uff1e Importer \u3092\u9078\u629e\u3057\u3066<br \/>\nImport Mode \u300cSpriteStudio6 Player\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_02.png\" alt=\"\" width=\"417\" height=\"267\" class=\"alignnone size-full wp-image-81588\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 54.08%;\">\n<p>3.\u300cImport\u300d\u3092\u62bc\u3057\u3066\u3001\u6307\u5b9a\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u524d\u9805\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u5185<\/p>\n<p>E:SpriteStudioDataOPTPiX_SpriteStudio_Animation_Templatecharacter_sample1<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3042\u308b character_sample1.sspj \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u6210\u529f\u3059\u308b\u3068<br \/>\ncharacter_sample1<br \/>\n\u304c\u767b\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/02import_03.png\" alt=\"\" width=\"354\" height=\"275\" class=\"alignnone size-full wp-image-81586\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"howto_05\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210<\/h3>\n<p>\u6b21\u306b\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%; height: 484px;\">\n<tbody>\n<tr style=\"height: 141px;\">\n<td style=\"width: 50%; height: 141px;\">1.Project\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u300cCreate\u300d\u2192\u300cC# Script\u300d\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%; height: 141px;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/03Script_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/03Script_01.png\" alt=\"\" width=\"605\" height=\"290\" class=\"alignnone size-full wp-image-81589\" \/><\/a><\/td>\n<\/tr>\n<tr style=\"height: 267px;\">\n<td style=\"width: 50%; height: 267px;\">2.\u4eca\u56de\u306f\u300cCharacterControl\u300d\u3068\u3044\u3046\u540d\u79f0\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/td>\n<td style=\"width: 50%; height: 267px;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/03Script_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/03Script_02.png\" alt=\"\" width=\"318\" height=\"295\" class=\"alignnone size-full wp-image-81590\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6e96\u5099\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u5236\u5fa1\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u4f7f\u7528\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306f<a href=\"#script\">\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u89e3\u8aac\u300d<\/a>\u306e\u9805\u306b\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u306f\u3001\u30b3\u30d4\u30fc\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u3066\u3044\u305f\u3060\u304f\u3060\u3051\u3067\u5404\u7a2e\u8a2d\u5b9a\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3001\u6e96\u5099\u3057\u3066\u304b\u3089\u6b21\u306e\u9805\u76ee\u3078\u9032\u3080\u3088\u3046\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<h3><a id=\"howto_06\"><\/a>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u5236\u5fa1\u306e\u6e96\u5099<\/h3>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">1.GameObject\u4f5c\u6210<br \/>\nHierarchy \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u3001Create Empty\u3092\u9078\u629e\u3001\u7a7a\u306eGameObject\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_01.png\" alt=\"\" width=\"271\" height=\"469\" class=\"alignnone size-full wp-image-81592\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">2.\u540d\u79f0\u5909\u66f4<br \/>\n\u4eca\u56de\u306f\u540d\u524d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u540d\u79f0\u3092\u300cCharacterControlObject \u300d\u306b\u5909\u3048\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_02.png\" alt=\"\" width=\"314\" height=\"112\" class=\"alignnone size-full wp-image-81593\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">3.\u30b9\u30af\u30ea\u30d7\u30c8\u30bb\u30c3\u30c8<br \/>\nAssets\/Sample\/Script\u3092\u958b\u304d\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f CharacterControl \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u3001Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e CharacterControlObject \u3078\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_03a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_03a.png\" alt=\"\" width=\"312\" height=\"514\" class=\"alignnone size-full wp-image-81652\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">\n<p>\u8a2d\u5b9a\u65b9\u6cd5\u306f\u3001\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u4ee5\u5916\u306b\u4e0b\u8a18\u306e\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059<\/p>\n<ol>\n<li>Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e CharacterControlObject \u3092\u30af\u30ea\u30c3\u30af<\/li>\n<li>Inspector\u3078\u8868\u793a\u3055\u308c\u305f Add Component \u3092\u30af\u30ea\u30c3\u30af<\/li>\n<li>\u958b\u3044\u305f\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089 Scripts \u3092\u9078\u629e<\/li>\n<li>CharacterControl \u3092\u9078\u629e<\/li>\n<\/ol>\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/04CtrlSetting_05.png\" alt=\"\" width=\"282\" height=\"490\" class=\"alignnone size-full wp-image-81596\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">4.\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6570\u306e\u8a2d\u5b9a<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u308b\u3068 Inspector \u306b\u300cSize\u300d\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f7f\u7528\u3059\u308bssae\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\u67a0\u6570\u3092\u793a\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f 1\u3064\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001\u300c1\u300d\u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_06.png\" alt=\"\" width=\"304\" height=\"258\" class=\"alignnone size-full wp-image-82546\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">5.Select Object \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u304f<br \/>\n\u300cElement 0\u300d\u306e\u6b04\u306b\u4f7f\u7528\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e prefab \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\nElement 0 \u6b04\u306e\u7aef\u306b\u3042\u308b <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_08a.png\" alt=\"\" width=\"11\" height=\"11\" class=\"alignnone size-full wp-image-82547\" \/> \u3092\u62bc\u3057\u3066 Select Object \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_08.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_08.png\" alt=\"\" width=\"303\" height=\"279\" class=\"alignnone size-full wp-image-82548\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">6.\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306eprefab\u3092\u8a2d\u5b9a<br \/>\n\u4f7f\u7528\u3059\u308b character_template_3head \u3092\u9078\u629e\u3057\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u307e\u3059\u3002 <br \/>\n\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_09.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_09.png\" alt=\"\" width=\"256\" height=\"366\" class=\"alignnone size-full wp-image-82549\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">7.\u8a2d\u5b9a\u78ba\u8a8d<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306b\u9078\u629e\u3057\u305f prefab \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f\u3089\u5b8c\u4e86\u3067\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_10.png\" alt=\"\" width=\"352\" height=\"275\" class=\"alignnone size-full wp-image-82550\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">prefab \u306e\u8a2d\u5b9a\u306f PrefabAnimation \u306b\u3042\u308b prefab \u3092\u76f4\u63a5 \u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u8a2d\u5b9a\u3082\u53ef\u80fd\u3067\u3059\u3002\n<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_07.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/update_04CtrlSetting_07.png\" alt=\"\" width=\"408\" height=\"219\" class=\"alignnone size-full wp-image-82551\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u5236\u5fa1\u306e\u6e96\u5099\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3><a id=\"howto_07\"><\/a>\u30ab\u30e1\u30e9\u306e\u78ba\u8a8d<\/h3>\n<blockquote>\n<p>SS6Player for Unity \u3092\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u969b\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u30ab\u30e1\u30e9\u8abf\u6574\u6e08\u306e\u5834\u5408\u306f\u3001\u672c\u9805\u76ee\u306e\u624b\u9806\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/blockquote>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">1.Main Camera \u3092\u9078\u629e<br \/>\nHierarchy \u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3066 Main Camera \u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_01.png\" alt=\"\" width=\"210\" height=\"117\" class=\"alignnone size-full wp-image-81634\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">2.Inspector \u3092\u78ba\u8a8d<br \/>\n\u521d\u671f\u72b6\u614b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u307e\u307e\u3067\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u898b\u3048\u306a\u3044\u72b6\u614b\u306e\u305f\u3081\u8abf\u6574\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_02.png\" alt=\"\" width=\"391\" height=\"548\" class=\"alignnone size-full wp-image-81635\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">3.Transform \u306e Position \u5909\u66f4<br \/>\nPosition \u306e Z \u3092\u4eca\u56de\u306f -600 \u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u518d\u751f\u6642\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/05Camera_03.png\" alt=\"\" width=\"391\" height=\"548\" class=\"alignnone size-full wp-image-81633\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"howto_08\"><\/a>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u52d5\u304b\u3059<\/h3>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305fssae\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u52d5\u4f5c\u3059\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\" colspan=\"2\">\n<p>1.\u4f5c\u6210\u3057\u305f\u3082\u306e\u3092\u52d5\u304b\u3057\u307e\u3059\u3002<br \/>\n&#x25b6;\u3092\u62bc\u3057\u3066\u52d5\u4f5c\u3055\u305b\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_00.png\" alt=\"\" width=\"102\" height=\"28\" class=\"alignnone size-full wp-image-81636\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">2.\u30b9\u30af\u30ea\u30fc\u30f3\u4e2d\u592e\u306b\u300cPRESS SPACE\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_01.png\" alt=\"\" width=\"931\" height=\"535\" class=\"alignnone size-full wp-image-81637\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_01.png 931w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_01-768x441.png 768w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_01-624x359.png 624w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">3.\u4e2d\u592e\u306b\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_02.png\" alt=\"\" width=\"943\" height=\"535\" class=\"alignnone size-full wp-image-81638\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_02.png 943w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_02-768x436.png 768w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_02-624x354.png 624w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">4.\u77e2\u5370\u30ad\u30fc\u3067\u5de6\u53f3\u306b\u8d70\u3063\u3066\u79fb\u52d5\u3002<br \/>\nZ\u30ad\u30fc\u3067\u30a2\u30bf\u30c3\u30af\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u518d\u751f\u3055\u308c\u307e\u3059\u3002<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_03.png\" alt=\"\" width=\"927\" height=\"535\" class=\"alignnone size-full wp-image-81639\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_03.png 927w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_03-768x443.png 768w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/09\/06Play_03-624x360.png 624w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\" colspan=\"2\">5.\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5909\u66f4\u3057\u3066\u3001\u4ed6\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e<a href=\"#script\">\u30b9\u30af\u30ea\u30d7\u30c8\u89e3\u8aac<\/a>\u3092\u53c2\u8003\u306b\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><a id=\"script\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u89e3\u8aac<\/h2>\n<p>\u4eca\u56de\u7d44\u307f\u8fbc\u3093\u3060\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u306f\u3001\u3067\u304d\u308b\u3060\u3051\u30b7\u30f3\u30d7\u30eb\u306b\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nSpriteStudio \u306e\u30c7\u30fc\u30bf\u3092\u7d44\u307f\u8fbc\u307f\u3001\u5236\u5fa1\u3059\u308b\u969b\u306e\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<h4>CharacterControl.cs<\/h4>\n<pre>using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class CharacterControl : MonoBehaviour {\r\n\r\n    \/\/ \u518d\u751f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306eResources\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30b5\u30d6\u30d1\u30b9\r\n    [SerializeField]\r\n    public Object[] AnimationList;\r\n\r\n    \/\/ \u518d\u751f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6307\u5b9a\u7528 \r\n    private enum AnimationPattern : int\r\n    {\r\n        Wait = 33,      \/\/ \u5f85\u6a5f\r\n        Attack = 1,     \/\/ \u653b\u6483 \r\n        Run = 24,       \/\/ \u8d70\u308a \r\n        Count\r\n    }\r\n\r\n    \/\/ \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u7ba1\u7406\u7528 \r\n    private GameObject m_goCharacter = null;\r\n    private GameObject m_goCharPos = null;\r\n    private Vector3 m_vecCharacterPos;      \/\/ \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u4f4d\u7f6e \r\n    private Vector3 m_vecCharacterScale;    \/\/ \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30b9\u30b1\u30fc\u30eb \r\n\r\n    \/\/ \u51e6\u7406\u30b9\u30c6\u30c3\u30d7\u7528 \r\n    private enum Step : int\r\n    {\r\n        Init = 0,   \/\/ \u521d\u671f\u5316 \r\n        Title,      \/\/ \u30bf\u30a4\u30c8\u30eb \r\n        Wait,       \/\/ \u5f85\u6a5f \r\n        Move,       \/\/ \u79fb\u52d5 \r\n        Attack,     \/\/ \u653b\u6483\r\n        End\r\n    }\r\n\r\n    \/\/ \u51e6\u7406\u30b9\u30c6\u30c3\u30d7\u7ba1\u7406\u7528 \r\n    private Step m_Step = Step.Init;\r\n\r\n    \/\/ \u6c4e\u7528\r\n    \/\/ \u3044\u308d\u3044\u308d\u4f7f\u3044\u307e\u308f\u3059\u7528\u5909\u6570\r\n    private int m_Count = 0;\r\n    private bool m_SW = true;\r\n\r\n    \/\/ Use this for initialization\r\n    void Start () {\r\n\r\n        \/\/ \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u95a2\u9023\u3092\u8a2d\u5b9a \r\n\r\n        \/\/ \u5ea7\u6a19\u8a2d\u5b9a \r\n        m_vecCharacterPos.x = 0.0f;\r\n        m_vecCharacterPos.y = -240.0f;\r\n        m_vecCharacterPos.z = 0.0f;\r\n\r\n        \/\/ \u30b9\u30b1\u30fc\u30eb\u8a2d\u5b9a \r\n        m_vecCharacterScale.x = 0.5f;\r\n        m_vecCharacterScale.y = 0.5f;\r\n        m_vecCharacterScale.z = 1.0f;\r\n    }\r\n\r\n    \/\/ Update is called once per frame\r\n    void Update () {\r\n        switch(m_Step)\r\n        {\r\n            \/\/ \u521d\u671f\u5316\r\n            case Step.Init:\r\n                m_Count = 0;\r\n                m_SW = true;\r\n                m_Step = Step.Title;\r\n                break;\r\n            \/\/ \u30bf\u30a4\u30c8\u30eb\r\n            case Step.Title:\r\n                if (++m_Count > 15) {\r\n                    m_SW = !m_SW;\r\n                    m_Count = 0;\r\n                }\r\n                if( Input.GetKeyDown(KeyCode.Space) == true ) {\r\n                    AnimationStart();   \/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u958b\u59cb\u51e6\u7406(\u8a2d\u5b9a)\r\n                    m_Step = Step.Wait;\r\n                }\r\n                break;\r\n            \/\/ \u5f85\u6a5f\r\n            case Step.Wait:\r\n                if (Input.GetKeyDown(KeyCode.Z) == true)        \/\/ \u653b\u6483 \r\n                {\r\n                    \/\/ \u653b\u6483\u306b\u5909\u66f4 \r\n                    AnimationChange(AnimationPattern.Attack);\r\n                    m_Step = Step.Attack;\r\n                }\r\n                else if (Input.GetKeyDown(KeyCode.LeftArrow) == true)   \/\/ \u5de6\u79fb\u52d5 \r\n                {\r\n                    if (m_vecCharacterScale.x < 0)\r\n                        m_vecCharacterScale.x *= -1;    \/\/ \u5de6\u5411\u304d\u306b\u3057\u307e\u3059\r\n                    m_goCharPos.transform.localScale = m_vecCharacterScale; \/\/ \u5411\u304d\u8a2d\u5b9a \r\n                    \/\/ \u8d70\u308a\u306b\u5909\u66f4 \r\n                    AnimationChange(AnimationPattern.Run);\r\n                    m_Step = Step.Move;\r\n                }\r\n                else if (Input.GetKeyDown(KeyCode.RightArrow) == true)  \/\/ \u53f3\u79fb\u52d5 \r\n                {\r\n                    if (m_vecCharacterScale.x > 0)\r\n                        m_vecCharacterScale.x *= -1;    \/\/ \u53f3\u5411\u304d\u306b\u3057\u307e\u3059\r\n                    m_goCharPos.transform.localScale = m_vecCharacterScale; \/\/ \u5411\u304d\u8a2d\u5b9a \r\n                    \/\/ \u8d70\u308a\u306b\u5909\u66f4 \r\n                    AnimationChange(AnimationPattern.Run);\r\n                    m_Step = Step.Move;\r\n                }\r\n                break;\r\n            \/\/ \u79fb\u52d5 \r\n            case Step.Move:\r\n                if (Input.GetKey(KeyCode.LeftArrow) == true)   \/\/ \u5de6\u79fb\u52d5 \r\n                {\r\n                    if(m_vecCharacterPos.x > -560.0f)\r\n                        m_vecCharacterPos.x -= 10.0f;\r\n                }\r\n                else if (Input.GetKey(KeyCode.RightArrow) == true)  \/\/ \u53f3\u79fb\u52d5 \r\n                {\r\n                    if (m_vecCharacterPos.x < 560.0f)\r\n                        m_vecCharacterPos.x += 10.0f;\r\n                }\r\n                else\r\n                {\r\n                    \/\/ \u5f85\u6a5f\u306b\u5909\u66f4 \r\n                    AnimationChange(AnimationPattern.Wait);\r\n                    m_Step = Step.Wait;\r\n                }\r\n                m_goCharPos.transform.localPosition = m_vecCharacterPos;    \/\/ \u5ea7\u6a19\u53cd\u6620 \r\n                break;\r\n            \/\/ \u653b\u6483\u4e2d \r\n            case Step.Attack:\r\n                if(IsAnimationPlay() == false)\r\n                {\r\n                    \/\/ \u5f85\u6a5f\u306b\u5909\u66f4 \r\n                    AnimationChange(AnimationPattern.Wait);\r\n                    m_Step = Step.Wait;\r\n                }\r\n                break;\r\n            default:\r\n                break;\r\n        }\r\n\t}\r\n\r\n    private void OnGUI()\r\n    {\r\n        \/\/ GUI\u5909\u66f4\r\n        GUIStyle guiStyle = new GUIStyle();\r\n        GUIStyleState styleState = new GUIStyleState();\r\n\r\n        switch (m_Step)\r\n        {\r\n            \/\/ \u30bf\u30a4\u30c8\u30eb\r\n            case Step.Title:\r\n                if (m_SW == true)\r\n                {\r\n                    styleState.textColor = Color.black; \/\/ \u6587\u5b57\u8272 \u9ed2 \r\n                    guiStyle.normal = styleState;       \/\/ \u30b9\u30bf\u30a4\u30eb\u306e\u8a2d\u5b9a\u3002\r\n                    GUI.Label(new Rect(420, 180, 100, 50), \"PRESS SPACE\", guiStyle);\r\n                }\r\n                break;\r\n            default:\r\n                break;\r\n        }\r\n    }\r\n\r\n    \/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u958b\u59cb \r\n    private void AnimationStart()\r\n    {\r\n        Script_SpriteStudio6_Root scriptRoot = null;    \/\/ SpriteStudio Anime \u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\r\n        int listLength = AnimationList.Length;\r\n\r\n        \/\/ \u3059\u3067\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u751f\u6210\u6e08 or \u30ea\u30bd\u30fc\u30b9\u8a2d\u5b9a\u7121\u3044\u5834\u5408\u306freturn\r\n        if (m_goCharacter != null || listLength<1)\r\n            return;\r\n\r\n        \/\/ \u518d\u751f\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u540d\u3092\u30ea\u30b9\u30c8\u304b\u3089\u53d6\u5f97\u3057\u3066\u518d\u751f\u3059\u308b\r\n        Object resourceObject = AnimationList[0];\r\n        if (resourceObject != null)\r\n        {\r\n            \/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u4f53\u5316\r\n            m_goCharacter = Instantiate(resourceObject, Vector3.zero, Quaternion.identity) as GameObject;\r\n            if (m_goCharacter != null)\r\n            {\r\n                scriptRoot = Script_SpriteStudio6_Root.Parts.RootGet(m_goCharacter);\r\n                if (scriptRoot != null)\r\n                {\r\n                    \/\/ \u5ea7\u6a19\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306eGameObject\u4f5c\u6210\r\n                    m_goCharPos = new GameObject();\r\n                    if (m_goCharPos == null)\r\n                    {\r\n                        \/\/ \u4f5c\u6210\u3067\u304d\u306a\u3044\u30b1\u30fc\u30b9\u5bfe\u5fdc \r\n                        Destroy(m_goCharacter);\r\n                        m_goCharacter = null;\r\n                    }\r\n                    else\r\n                    {\r\n                        \/\/ Object\u540d\u5909\u66f4 \r\n                        m_goCharPos.name = \"Comipo\";\r\n\r\n                        \/\/ \u5ea7\u6a19\u8a2d\u5b9a \r\n                        m_goCharacter.transform.parent = m_goCharPos.transform;\r\n\r\n                        \/\/ \u81ea\u5206\u306e\u5b50\u306b\u79fb\u52d5\u3057\u3066\u5ea7\u6a19\u3092\u8a2d\u5b9a\r\n                        m_goCharPos.transform.parent = this.transform;\r\n                        m_goCharPos.transform.localPosition = m_vecCharacterPos;\r\n                        m_goCharPos.transform.localRotation = Quaternion.identity;\r\n                        m_goCharPos.transform.localScale = m_vecCharacterScale;\r\n\r\n                        \/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u518d\u751f\r\n                        AnimationChange(AnimationPattern.Wait);\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    \/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u518d\u751f\/\u5909\u66f4 \r\n    private void AnimationChange(AnimationPattern pattern)\r\n    {\r\n        Script_SpriteStudio6_Root scriptRoot = null;    \/\/ SpriteStudio Anime \u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\r\n        int iTimesPlaey = 0;\r\n\r\n        if (m_goCharacter == null)\r\n            return;\r\n\r\n        scriptRoot = Script_SpriteStudio6_Root.Parts.RootGet(m_goCharacter);\r\n        if (scriptRoot != null)\r\n        {\r\n            switch (pattern)\r\n            {\r\n                case AnimationPattern.Wait:\r\n                    iTimesPlaey = 0;    \/\/ \u30eb\u30fc\u30d7\u518d\u751f \r\n                    break;\r\n                case AnimationPattern.Attack:\r\n                    iTimesPlaey = 1;    \/\/ 1\u56de\u3060\u3051\u518d\u751f \r\n                    break;\r\n                case AnimationPattern.Run:\r\n                    iTimesPlaey = 0;    \/\/ \u30eb\u30fc\u30d7\u518d\u751f \r\n                    break;\r\n                default:\r\n                    break;\r\n            }\r\n            scriptRoot.AnimationPlay(-1, (int)pattern, iTimesPlaey);\r\n        }\r\n    }\r\n\r\n    \/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u518d\u751f\u4e2d\u304b\u505c\u6b62\u4e2d(\u30a8\u30e9\u30fc\u542b)\u304b\u53d6\u5f97\u3057\u307e\u3059\r\n    private bool IsAnimationPlay()\r\n    {\r\n        bool ret = false;\r\n\r\n        Script_SpriteStudio6_Root scriptRoot = null;    \/\/ SpriteStudio Anime \u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\r\n\r\n        if (m_goCharacter != null)\r\n        {\r\n            scriptRoot = Script_SpriteStudio6_Root.Parts.RootGet(m_goCharacter);\r\n            if (scriptRoot != null)\r\n            {\r\n                \/\/ \u518d\u751f\u56de\u6570\u3092\u53d6\u5f97\u3057\u3066\u3001\u30d7\u30ec\u30a4\u7d42\u4e86\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\r\n                int Remain = scriptRoot.PlayTimesGetRemain(0);\r\n                if (Remain >= 0)\r\n                    ret = true;\r\n            }\r\n        }\r\n\r\n        return ret;\r\n    }\r\n\r\n}\r\n<\/pre>\n<h4>\u95a2\u6570\u89e3\u8aac<\/h4>\n<ul>\n<li><strong>void Start ()<\/strong><br \/>\n\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306b\u95a2\u9023\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u521d\u671f\u5316\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>void Update ()<\/strong><br \/>\n\u6bce\u30d5\u30ec\u30fc\u30e0\u884c\u308f\u308c\u308b\u51e6\u7406\u3092 m_Step \u306e\u6307\u5b9a\u3067\u51e6\u7406\u304c\u5909\u5316\u3059\u308b\u3088\u3046\u306b\u7d44\u3093\u3067\u3044\u307e\u3059\u3002<\/li>\n<li><strong>void OnGUI()<\/strong><br \/>\n\u6587\u5b57\u8868\u793a\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>void AnimationStart()<\/strong><br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u304b\u3089\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306eprefab \u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001GameObject\u3092\u751f\u6210\u3001\u5ea7\u6a19\u6307\u5b9a\u3057\u3066\u306e\u8868\u793a\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>void AnimationChange(AnimationPattern pattern)<\/strong><br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u5207\u308a\u66ff\u3048\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>bool IsAnimationPlay()<\/strong><br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u518d\u751f\u4e2d\u304b\u3069\u3046\u304b\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\u7279\u5b9a\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u7d42\u4e86\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u8a2d\u3051\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n<h2><a id=\"relation\"><\/a>\u95a2\u9023\u30da\u30fc\u30b8<\/h2>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">SS6Player For Unity\u3067Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity_continuous_play\/\">\u8907\u6570\u306esspj\u3092Unity\u4e0a\u3067\u9023\u7d9a\u518d\u751f\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">\u8907\u6570\u306esspj\u3092\u3001SS6Player for Unity\u3092\u4f7f\u7528\u3057\u3066\u9023\u7d9a\u3067\u518d\u751f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity_native\/\">Unity\u306e\u6a5f\u80fd\u306b\u5909\u63db\u3057\u3066\u4f7f\u7528\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">sspj\u3092Unity\u306e\u6a19\u6e96\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u5f62\u306b\u5909\u63db\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/reference\/unity_z_fighting\/\">Unity \u3067\u518d\u751f\u3057\u305f\u969b\u306b\u3001\u30d1\u30fc\u30c4\u304c\u30c1\u30e9\u30c1\u30e9\u660e\u6ec5\u3059\u308b\u306e\u306b\u5bfe\u51e6\u3057\u305f\u3044<\/a><br \/><span style=\"font-size: small;\">Z\u30d5\u30a1\u30a4\u30c6\u30a3\u30f3\u30b0\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/SpriteStudio\/SS6PlayerForUnity\/wiki\" class=\"su-button su-button-style-default github gtmEvent\" style=\"color:#ffffff;background-color:#be80d2;border-color:#9867a8;border-radius:5px\" target=\"_self\" id=\"op_ss6p_unity\"><span style=\"color:#ffffff;padding:7px 20px;font-size:16px;line-height:24px;border-color:#d2a7e0;border-radius:5px;text-shadow:0px 0px 0px #000000\"><i class=\"sui sui-github\" style=\"font-size:16px;color:#ffffff\"><\/i> SS6Player For Unity<\/span><\/a><br \/>\u3000\u6700\u65b0\u7248\u3001\u8cea\u554f\u30fb\u8981\u671b\u306f GitHub\u3078<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8868\u793a\u3092\u884c\u3044\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5909\u5316\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002 \u4eca\u56de\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002 \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf \u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30c6\u30f3\u30d7\u30ec..<\/p>\n","protected":false},"author":33,"featured_media":0,"parent":34385,"menu_order":41,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[],"class_list":["post-81583","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/81583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/comments?post=81583"}],"version-history":[{"count":0,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/81583\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/34385"}],"wp:attachment":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/media?parent=81583"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/tags?post=81583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}