ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2022ǯ02·î04Æü(¶â) 11:37:23ÍúÎò
¡¡¤³¤Î¼ê½ç¤Ç¤Ï¥¥ã¥é¤¬Â¾¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËSE¤òºÆÀ¸¤·¡¢¥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Æ¤¤¤¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡¡Å¨¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËSE¤¬ÌĤäƥ¨¥Õ¥§¥¯¥È¤¬À¸À®¤µ¤ì¤ë¡ä
https://gyazo.com/7d4a29f97a8229f63def37fa508f0f82
¡ã¼ÂÁõÆ°²è¡¡¥¨¥Õ¥§¥¯¥È¤Ï¼«Í³¤ËÀßÄê¡ä
https://gyazo.com/da28335e868a3fbfa0a357a20f940118
¡ã¼ÂÁõÆ°²è¡¡¥³¥¤¥ó¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËSE¤¬ÌĤäƥ¨¥Õ¥§¥¯¥È¤¬À¸À®¤µ¤ì¤ë¡ä
https://gyazo.com/b532fcdda76c1b305de80a747351bcf2
¼ê½ç£²£¸¡¡¡¼¥ª¥Ö¥¸¥§¥¯¥È¤ÈÀÜ¿¨»þ¤ÎSE¤È¥¨¥Õ¥§¥¯¥È½èÍý¤Î¼ÂÁõ¡¼
£´£·¡¥ÌµÎÁ¤Î¥¨¥Õ¥§¥¯¥È¥¢¥»¥Ã¥È¤ò¥¤¥ó¥Ý¡¼¥È¤¹¤ë £´£¸¡¥¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤Æ¡¢Å¨¤ËÀÜ¿¨¤·¤¿ºÝ¤ËSE¤òºÆÀ¸¤·¡¢Å¨¤Î°ÌÃ֤˥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ë½èÍý¤òÄɲ乤ë(PlayerController)
¡¡¿·¤·¤¯³Ø½¬¤¹¤ëÆâÍƤϰʲ¼¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¦AudioSource.PlayClipAtPoint¥á¥½¥Ã¥É
¡¡¥¢¥»¥Ã¥È¥¹¥È¥¢¤Î¥µ¥¤¥È¾åÉô¤Ë¤¢¤ë¸¡º÷Áë¤Ë free effect ¤ÈÆþÎϤ·¤Æ¸¡º÷¤ò¹Ô¤¤¤Þ¤¹¡£
¸¡º÷

¡¡Cartoon FX Free ¤È¤¤¤¦ÌµÎÁ¤Î¥¨¥Õ¥§¥¯¥ÈÍÑ¥¢¥»¥Ã¥È¤¬¸«¤Ä¤«¤ê¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£
Cartoon FX Free

¡¡¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥¢¥»¥Ã¥È¤Î¾ÜºÙ¤¬²èÌ̤Ëɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢ Open in Unity ¤È¤¤¤¦¡¢ÀĤ¤¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£

¡¡
¡¡¼«Æ°Åª¤ËUnity¤Î¥¨¥Ç¥£¥¿¡¼²èÌ̤ËÁ«°Ü¤·¤Þ¤¹¡£¤³¤ì¤Ç¥¢¥»¥Ã¥È¥¹¥È¥¢¤Î¥µ¥¤¥È¤ÏÊĤ¸¤Æ¤·¤Þ¤Ã¤ÆÂç¾æÉפǤ¹¡£
¡¡¥¨¥Ç¥£¥¿¡¼¤ÎPackageManager¥Ó¥å¡¼¤¬³«¤¤¤Æ¡¢ÂоݤΥ¢¥»¥Ã¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢±¦²¼¤Ë¤¢¤ë Download ¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£
PackageManager¥Ó¥å¡¼

¡¡Download ¤¬½ªÎ»¤¹¤ë¤Èº¸Î٤ˤ¢¤ë Import ¤È¤¤¤¦¥Ü¥¿¥ó¤¬²¡¤»¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤ò²¡¤·¤Þ¤¹¡£
PackageManager¥Ó¥å¡¼

¡¡
¡¡¥¤¥ó¥Ý¡¼¥È¤¹¤ë¥¢¥»¥Ã¥È¤Î°ìÍ÷¤¬¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥¤¥ó¥É¥¦¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤Þ¤Þ±¦²¼¤Ë¤¢¤ë Import ¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£
Import³Îǧ¤Î¥Ý¥Ã¥×¥¢¥Ã¥×

¡¡ÂÔµ¡¤¹¤ë¤è¤¦¤Ë¥×¥í¥°¥ì¥¹É½¼¨¤¬½Ð¤Æ¡¢¤·¤Ð¤é¤¯¤¹¤ë¤È¥¢¥»¥Ã¥È¤Î¥¤¥ó¥Ý¡¼¥È¤¬½ªÎ»¤·¤Þ¤¹¡£
¡¡ProjectÆâ¤ò³Îǧ¤·¤Þ¤·¤ç¤¦¡£JMO Assets ¤È¤¤¤¦¿·¤·¤¤¥Õ¥©¥ë¥À¤¬Äɲ䵤ì¤Æ¤¤¤ì¤Ð̵»ö¤Ë¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Õ¥©¥ë¥À¤ò½çÈ֤˳«¤¤¤Æ¤¤¤¯¤È¤¿¤¯¤µ¤ó¤Î¥Õ¥©¥ë¥À¤È¥Õ¥¡¥¤¥ë¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£¡Ê²èÁü¤ÎÀĤ¤Éôʬ¤¬º£²ó¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤¿¥¢¥»¥Ã¥È¤Ç¤¹¡Ë
JMO Assets

¡¡°Ê¾å¤Ç¥¢¥»¥Ã¥È¤Î¥¤¥ó¥Ý¡¼¥Èºî¶È¤Ï½ªÎ»¤Ç¤¹¡£
¡¡JMO Assets ¥Õ¥©¥ë¥ÀÆâ¤Ë¤Ï¤¤¤¯¤Ä¤«¤Î Prefabs ¥Õ¥©¥ë¥À¤¬¤¢¤ê¡¢¤³¤ÎÃæ¤Ë´°À®¤·¤Æ¤¤¤ë¥¨¥Õ¥§¥¯¥È¤¬Â¿¿ôÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤É¤Î¥×¥ì¥Õ¥¡¥Ö¡¦¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤â¤è¤¤¤Î¤Ç¡¢Scene¥Ó¥å¡¼ ¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤ÆÀßÃÖ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¼«Æ°Åª¤Ë¥¨¥Õ¥§¥¯¥È¤¬ºÆÀ¸¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÏUnity¤Î¥Ñ¡¼¥Æ¥£¥¯¥ë¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤ÆºîÀ®¡¦À©¸æ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
Scene¥Ó¥å¡¼¤Î±¦²¼¤Ë Particle Effect ¤È¤¤¤¦¥¦¥¤¥ó¥É¥¦¤¬É½¼¨¤µ¤ì¡¢Play ¤ò²¡¤¹¤ÈºÆÅÙ¥¨¥Õ¥§¥¯¥È¤òºÆÀ¸¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡ã¸¡¾ÚÆ°²è¡¡¥¨¥Õ¥§¥¯¥È¤òÀßÃÖ¤·¤Æ¤É¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¤«¸¡¾Ú¤¹¤ë¡ä
https://gyazo.com/acdfd6299aa6ff5660995058b8c55fcd
¡¡¤¤¤¯¤Ä¤«ÀßÃÖ¤·¤Æ¡¢¤É¤Î¤è¤¦¤Ê¼ïÎà¤Î¥¨¥Õ¥§¥¯¥È¤¬¤¢¤ë¤«»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¤½¤ÎÃ椫¤é¡¢Å¨¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËÍøÍѤ¹¤ë¥¨¥Õ¥§¥¯¥È¤ò·èÄꤷ¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡¸¡¾Ú¤¬½ªÎ»¤·¤¿¤é¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë¡¢¤³¤ì¤é¤ÎÀßÃÖ¤·¤¿¥¨¥Õ¥§¥¯¥È¥×¥ì¥Õ¥¡¥Ö¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
¥×¥ì¥Õ¥¡¥Ö¤Ç¤¹¤Î¤Ç¥Ò¥¨¥é¥ë¥¡¼¤«¤éºï½ü¤·¤Æ¤âÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¡¡¤Þ¤¿¡¢¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤ÆÀßÃÖ¤·¤¿ºÝ¤Ë¡¢¼«Æ°Åª¤Ë£±²ó¤À¤±¥¨¥Õ¥§¥¯¥È¤¬ºÆÀ¸¤µ¤ì¤¿¤È»×¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¥¨¥Õ¥§¥¯¥È¤ò¥²¡¼¥àÃæ¤Ç¥¹¥¯¥ê¥×¥È¤«¤éÀ¸À®¤·¤¿¾ì¹ç¤Ë¤âƱ¤¸¤è¤¦¤ËÆ°ºî¤·¤Þ¤¹¡£
¤Ä¤Þ¤ê¡¢¥¤¥ó¥¹¥¿¥ó¥¹½èÍý¤ò¹Ô¤¦¤³¤È¤Ë¤è¤Ã¤ÆÀ¸À®»þ¤Ë£±²ó¤À¤±¥¨¥Õ¥§¥¯¥È¤òºÆÀ¸¤·¤Æ¤¯¤ì¤Þ¤¹¤Î¤Ç¡¢
¥×¥ì¥Õ¥¡¥Ö¤«¤é¥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ë¤È¡¢¼«Æ°Åª¤Ë¥¨¥Õ¥§¥¯¥È¤ÎºÆÀ¸¤Þ¤Ç¤ò°ìÏ¢¤ÎÆ°ºî¤Ç¼Â¹Ô¤·¤Æ¤¯¤ì¤Þ¤¹¡£
(¤Ê¤ª¥ë¡¼¥×¤ÎÀßÄê¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥¨¥Õ¥§¥¯¥È¤Ï£±²ó¤Ç¤Ï¤Ê¤¯¡¢Ç˲õ¤µ¤ì¤ë¤Þ¤Ç¤º¤Ã¤ÈºÆÀ¸¤ò·«¤êÊÖ¤·¤Þ¤¹¡£)
¡¡À§È󿧡¹¤È»î¤·¤Æ¤¯¤À¤µ¤¤¡£Áàºî¤·¤Æ¤¤¤¯¤³¤È¤¬½¬ÆÀ¤Ø¤Î°ìÈ֤ζáÆ»¤Ë¤Ê¤ê¤Þ¤¹¡£
£´£¸¡¥¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤Æ¡¢Å¨¤ËÀÜ¿¨¤·¤¿ºÝ¤ËSE¤òºÆÀ¸¤·¡¢Å¨¤Î°ÌÃ֤˥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ë½èÍý¤òÄɲ乤ë 
¡¡SE¤òºÆÀ¸¤¹¤ëÊýË¡¤ä¡¢¥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ëÊýË¡¤Ë¤Ï¿§¡¹¤Ê¼êË¡¤¬¤¢¤ê¤Þ¤¹¡£
º£²ó¤Ï£±¤Ä¤Î¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤¹¤ë¤³¤È¤ÇξÊý¤Î½èÍý¤ò¼ÂÁõ¤Ç¤¤ë¤è¤¦¤Ë¡¢PlayerController ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤¹¤ë¤³¤È¤Ç½èÍý¤òÀ߷פ·¤Þ¤¹¡£
¡¡SE¤Ë´Ø¤·¤Æ¤Ï AudioClip ·¿¤ÎÊÑ¿ô¤òÀë¸À¤·¤Æ¡¢Å¨¤òÀÜ¿¨¤·¤¿ºÝ¤ËºÆÀ¸¤·¤¿¤¤ SE ¤ò»öÁ°¤Ë¥¢¥µ¥¤¥ó¤·¤ÆÅÐÏ¿¤·¤Æ¤ª¤¤Þ¤¹¡£
¥¨¥Õ¥§¥¯¥È¤Ë´Ø¤·¤Æ¤âƱÍͤǡ¢GameObject ·¿¤ÎÊÑ¿ô¤òÀë¸À¤·¤Æ¡¢Àè¤Û¤É¥¤¥ó¥Ý¡¼¥È¤·¤¿¥¨¥Õ¥§¥¯¥ÈÍѤΥץì¥Õ¥¡¥Ö¤ò¥¢¥µ¥¤¥ó¤·¤Æ¤ª¤¤Þ¤¹¡£
¡¡¤³¤ì¤é¤Î¾ðÊó¤òÍøÍѤ·¤Æ¡¢Å¨¤ÈÀÜ¿¨¤·¤¿ºÝ¡¢¤Ä¤Þ¤êOnCollisionEnter2D ¥á¥½¥Ã¥É¤Î½èÍý¤ÎÃæ¤Ë¤³¤ì¤é¤Î½èÍý¤òÄɲ䷤ƼÂÁõ¤·¤Þ¤¹¡£
¡¡SE¤ÎºÆÀ¸¤Ë´Ø¤·¤Æ¤Ï¡¢AudioSource ¥¯¥é¥¹¤Î»ý¤Ä PlayClipAtPoint ¥á¥½¥Ã¥É¤òÍøÍѤ·¤Þ¤¹¡£¤³¤Î½èÍý¤Ï AudioSource ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò¥¢¥¿¥Ã¥Á¤·¤Æ¤¤¤Ê¤¯¤Æ¤â
°ú¿ô¤Ç»ØÄꤷ¤¿ AudioClip ·¿¤Î¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤ÎºÆÀ¸¤¬²Äǽ¤Ç¤¹¡£
¡¡¥¨¥Õ¥§¥¯¥È¤Ë´Ø¤·¤Æ¤Ï¡¢GameObject ·¿¤Ç¥¤¥ó¥¹¥¿¥ó¥¹½èÍý¤ò¹Ô¤Ã¤ÆÌá¤êÃͤòÍÑ°Õ¤·¤Æ¤ª¤¤¤¿ÊÑ¿ô¤ËÂåÆþ¤·¡¢°ìÄê»þ´Ö¸å¤ËÇË´þ¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î¥á¥½¥Ã¥É¤ÏÊÑ¿ô¤òÍøÍѤ·¤Ê¤¯¤Æ¤âÍøÍѤǤ¤ë¡¢AudioSource ¥¯¥é¥¹¤Î»ý¤Ä static ¥á¥½¥Ã¥É¤Î£±¤Ä¤Ç¤¹¡£
¡¡Âè1°ú¿ô¤Ç»ØÄꤷ¤¿ AudioClip ¤òºÆÀ¸¤·¤Þ¤¹¡£
¤½¤ÎºÝ¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë AudioSource ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢ºÆÀ¸¤¬½ªÎ»¤¹¤ë¤ÈƱ»þ¤Ë¼«Æ°¤ÇÇË´þ¤·¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢Âè2°ú¿ô¤Ë¤Ï¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë°ÌÃÖ¤ò»ØÄꤷ¤Þ¤¹¡£
»ØÄꤵ¤ì¤¿°ÌÃÖ¤Ç AudioSource ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬À¸À®¤µ¤ì¤Æ AudioClip ¤¬ºÆÀ¸¤µ¤ì¤Þ¤¹¡£
// Ũ¤È¤ÎÀÜ¿¨ÍѤÎSE(AudioClip)¤òºÆÀ¸¤¹¤ë AudioSource.PlayClipAtPoint(knockbackSE, transform.position);
¡¡¤³¤Î¥á¥½¥Ã¥É¤ÎÊØÍø¤ÊÅÀ¤Ï¡¢¤â¤¦£±¤Ä¤¢¤ê¤Þ¤·¤Æ¡¢Ç˲õ¤µ¤ì¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¤³¤ÎÌ¿Îá¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤â
¤·¤Ã¤«¤ê¤È¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤·¤Æ¤¯¤ì¤ë¤È¤¤¤¦ÅÀ¤Ç¤¹¡£
¡¡Î㤨¤Ð¡¢¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¼«ÂÎ¤Ë AudioSource ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ý¤¿¤»¤Æ¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤¹¤ë¾ì¹ç¡¢
ÅöÁ³¤Ê¤¬¤é¡¢¤½¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬Ç˲õ¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤âºÆÀ¸¤µ¤ì¤Þ¤»¤ó¡£
¡¡¤³¤Î¥á¥½¥Ã¥É¤ÏAudioClipºÆÀ¸ÍѤο·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤·¤Æ¤¯¤ì¤ë¤Î¤Ç¡¢
À¸À®¸µ¤Ç¤¢¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬Ç˲õ¤µ¤ì¤Æ¤¤¤Æ¤â¡¢Ê̤Υ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤·¤Æ¤¤¤ë¤¿¤á¡¢¤Á¤ã¤ó¤È¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤¬ºÆÀ¸¤µ¤ì¤Þ¤¹¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥¹¥¯¥ê¥×¥È¥ê¥Õ¥¡¥ì¥ó¥¹
AudioSource.PlayClipAtPoint
https://docs.unity3d.com/ja/current/ScriptReferenc...
Unishar -¥æ¥Ë¥·¥ã¡¼ÍÍ
Ç˲õ¤µ¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¤«¤é¡¦»ØÄꤷ¤¿¾ì½ê¤«¤é²»ºÆÀ¸¡ªPlayClipAtPoint¤ÎÀâÌÀ¤È»È¤¤Êý
https://miyagame.net/playclipatpoint/
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤Þ¤·¤¿¤Î¤Ç¡¢PlayerController ¥¹¥¯¥ê¥×¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë Yuko_Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡£
¿·¤·¤¯Äɲä·¤¿£²¤Ä¤ÎÊÑ¿ô¤Î¥¢¥µ¥¤¥ó¾ðÊó¤¬É½¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤ò½çÈ֤˥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
Yuko_Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü

¡¡knockbackSE ÊÑ¿ô¤Ï AudioClip ·¿¤Ç¤¹¤Î¤Ç¡¢¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤Î¤ß¥¢¥µ¥¤¥ó¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£Audio ¥Õ¥©¥ë¥ÀÆâ¤Ë¤¢¤ë¡¢
Ũ¤ÈÀÜ¿¨¤·¤¿ºÝ¤Î SE ÍѤΥª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡knockbackEffect ÊÑ¿ô¤Ï GameObject ·¿¤Ç¤¹¤Î¤Ç¡¢¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ì¤Ð¥¢¥µ¥¤¥ó¤¬²Äǽ¤Ç¤¹¡£
º£²ó¥¤¥ó¥Ý¡¼¥È¤·¤¿¥¨¥Õ¥§¥¯¥ÈÍѤΥץì¥Õ¥¡¥Ö¡¦¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò£±¤ÄÁªÂò¤·¤Æ¡¢¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¤É¤Î¥×¥ì¥Õ¥¡¥Ö¤òÍøÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£
Yuko_Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¢¥µ¥¤¥ó¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü

¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢Å¨¤ÈÀÜ¿¨¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£SE¤¬ºÆÀ¸¤µ¤ì¤Æ¥¨¥Õ¥§¥¯¥È¤¬À¸À®¤µ¤ì¤ì¤ÐÀ®¸ù¤Ç¤¹¡£
¤Þ¤¿¥¨¥Õ¥§¥¯¥È¤Ï¼«Æ°Åª¤Ë 0.5 Éøå¤Ëºï½ü¤µ¤ì¤ì¤ÐÀµ¾ï¤Ê½èÍý¤Ë¤Ê¤ê¤Þ¤¹¡£
¡ã¼Â¹ÔÆ°²è¡¡Å¨¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËSE¤¬ÌĤäƥ¨¥Õ¥§¥¯¥È¤¬À¸À®¤µ¤ì¤ë¡ä
https://gyazo.com/b6f514ff341fbbf7ac267f584577f52f
¡¡Å¨¤ÈÀÜ¿¨¤·¤¿ºÝ¤Ë¤Ï¥²¡¼¥à¤ò°ì»þÄä»ß¤·¤Æ¡¢¥Ò¥¨¥é¥ë¥¡¼¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
PlayClipAtPoint¥á¥½¥Ã¥É¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿ SE ºÆÀ¸ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È(One shot audio)¤¬À¸À®¤µ¤ì¤Æ¡¢¼«Æ°Åª¤ËÇË´þ¤µ¤ì¤Þ¤¹¡£
¡ã¼Â¹ÔÆ°²è¡¡¥Ò¥¨¥é¥ë¥¡¼¤ËSEºÆÀ¸ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤ë¡ä
https://gyazo.com/3e2709d503cf03d35163cfde06a0a1c8
¡¡¤â¤·¤â SE ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢SE ¤¬Ê¹¤³¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢BGM¤Î¥Ü¥ê¥å¡¼¥à¤¬Â礤¹¤®¤ë¤«¡¢
SE ÍѤΥª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤Î¸µ¡¹¤Î¥Ü¥ê¥å¡¼¥à¤¬¾®¤µ¤¤¤«¤¤¤º¤ì¤«¤¬¸¶°ø¤È¤·¤Æ¹Í¤¨¤é¤ì¤Þ¤¹¡£
¤Þ¤º¤Ï BGM ¤Î¥Ü¥ê¥å¡¼¥à¤ò 0 ¤Ë¤·¤Æʹ¤³¤¨¤ë¤«³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡Å¨¤ËÀÜ¿¨¤·¤¿¾ì¹ç¤ÈƱ¤¸¤è¤¦¤Ë¡¢º£Å٤ϥ³¥¤¥ó¤ÈÀÜ¿¨¤·¤Æ³ÍÆÀ¤·¤¿ºÝ¤Ë¡¢SE¤òÌĤ餷¤Æ¡¢¥¨¥Õ¥§¥¯¥È¤òÀ¸À®¤¹¤ë½èÍý¤ò¼«Ê¬¤ÇÀ߷פ·¤Æ¼ÂÁõ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
SE¡¢À¸À®¤¹¤ë¥¨¥Õ¥§¥¯¥È¤Ï¼«Í³¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡ã»²¹Í²èÁü¡ä
PlayerController ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü

PlayerController ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¢¥µ¥¤¥ó¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü

¡ã¼ÂÁõÆ°²è¡¡¥³¥¤¥ó¤ÈÀÜ¿¨¤·¤¿ºÝ¤ËSE¤¬ÌĤäƥ¨¥Õ¥§¥¯¥È¤¬À¸À®¤µ¤ì¤ë¡ä
https://gyazo.com/b532fcdda76c1b305de80a747351bcf2
¡ã¼ÂÁõÆ°²è¡¡Î¾Êý¡ä
https://gyazo.com/8fc747d592ad2713785608669bf1364b
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£²£¹¡¡¡¼Íî²¼ËÉ»ßÍѤÎÀ©¸æ¡¼¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯