ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2021ǯ11·î02Æü(²Ð) 14:46:10ÍúÎò
¼ê½ç£±£·¡¡¡¼¥í¥¸¥Ã¥¯¤Î³Ø½¬¢¡¼
£³£°¡¥Ì£Êý¥¥ã¥é¤Ë¹¶·â²ó¿ô¤Îµ¡Ç½¤È¡¢»ØÄꤷ¤¿¹¶·â²ó¿ô¤Ë㤷¤¿¤éÇ˲õ¤¹¤ë¤È¤¤¤¦»ÅÍͤȱ¿ÍÑ¤Î¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¼ÂÁõ¤¹¤ë £³£±¡¥Å¨¥¥ã¥é¤¬¹¶·â¤ò¼õ¤±¤¿ºÝ¤Ë°ì»þ°ÜÆ°¤òÄä»ß¤·¡¢¤½¤Î¸å°ÜÆ°¤òºÆ³«¤¹¤ë¤È¤¤¤¦»ÅÍͤȱ¿ÍÑ¤Î¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¼ÂÁõ¤¹¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥í¥¸¥Ã¥¯¤Î¹Í¤¨Êý
£³£°¡¥Ì£Êý¥¥ã¥é¤Ë¹¶·â²ó¿ô¤Îµ¡Ç½¤È¡¢»ØÄꤷ¤¿¹¶·â²ó¿ô¤Ë㤷¤¿¤éÇ˲õ¤¹¤ë¤È¤¤¤¦»ÅÍͤȱ¿ÍÑ¤Î¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¼ÂÁõ¤¹¤ë ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡CharaController ¥¹¥¯¥ê¥×¥ÈÆâ¤Ë TODO ¤Çµ½Ò¤·¤Æ¤¤¤ë¹¶·â²ó¿ô¤Ë´ØÏ¢¤¹¤ë½èÍý¤òÀ߷פ·¤Æ¡¢¼ÂÁõ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¡¡¤³¤Î½èÍý¤Ë¤Ï¡¢¸½ºß¤Î¹¶·â²ó¿ô¤ò´ÉÍý¤¹¤ëÊÑ¿ô¤¬É¬Íפˤʤê¤Þ¤¹¡£
¤³¤ÎÃͤò¥«¥¦¥ó¥È¥¢¥Ã¥×¡¢¤¢¤ë¤¤¤Ï¥«¥¦¥ó¥È¥À¥¦¥ó¤µ¤»¤Æ¤¤¤Ã¤Æ¡¢ÆÃÄê¤ÎÃͤË㤷¤¿¤é¥¥ã¥é¤òÇ˲õ¤¹¤ë¡¢¤È¤¤¤¦¥í¥¸¥Ã¥¯¤¬ÁȤߤ䤹¤¤¤È»×¤¤¤Þ¤¹¡£
¡¡¥¥ã¥é¤Î»Ä¤ê¹¶·â²ó¿ô¤¬¼ÂÁõ¤Ç¤¤¿¤é¡¢¤½¤Î²ó¿ô¤ò¥¥ã¥é¤ÎƬ¾å¤Ëɽ¼¨¤¹¤ë¤¿¤á¤Îµ¡Ç½¤ò¼ÂÁõ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¡¡¥¥ã¥é¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ë Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢RenderMode ¤ò WorldSpace ¤Ë¤·¤ÆÀßÄê¤ò¹Ô¤¦ÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
¤³¤Á¤é¤Îµ»ö¤ò»²¹Í¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤Þ¤º¤Ï¥¥ã¥é¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤Ë»Ä¤ê¹¶·â²ó¿ô¤òɽ¼¨¤¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¤«¤é¡¢¥¹¥¯¥ê¥×¥È¤Î½¤Àµ¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£
»Ä¤ê¹¶·â²ó¿ô¤ÎÃͤ¬¡¢¥¥ã¥é¤ÎƬ¾å¤Ëɽ¼¨¤¹¤ë¤Ë¤Ï¤É¤Î¤è¤¦¤ÊÀ©¸æ¤¬¹Ô¤¨¤ì¤Ð¤¤¤¤¤Î¤«¤ò¥¤¥á¡¼¥¸¤·¤Ê¤¬¤é¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¤¯¤À¤µ¤¤¡£
¡ã»²¹Í¡¡Chara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥×¥ì¥Õ¥¡¥Ö¡ä
![](https://image01.seesaawiki.jp/i/o/i-school-memo/b0i3ezJdPL.png)
¡ã³Æ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤È Scene ¥Ó¥å¡¼²èÁü¡ä
Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
![](https://image01.seesaawiki.jp/i/o/i-school-memo/e4hGik09rL.png)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/r6djKeHRO2.png)
txtAttackCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
![](https://image02.seesaawiki.jp/i/o/i-school-memo/QudGVghq8g.png)
![](https://image01.seesaawiki.jp/i/o/i-school-memo/oQjwk7nKIQ.png)
imgAttackIcon ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
![](https://image02.seesaawiki.jp/i/o/i-school-memo/lUaxUuxzJZ.png)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/GaWlwyS9pC.png)
¡¡¤É¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¤É¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀ©¸æ¤ò¹Ô¤¨¤Ð»Ä¤ê¤Î¹¶·â²ó¿ô¤¬²èÌ̤Ëɽ¼¨¤Ç¤¤ë¤«¡¢¤·¤Ã¤«¤ê¤È¥¤¥á¡¼¥¸¤·¤Æ¤¯¤À¤µ¤¤¡£
£³£±¡¥Å¨¥¥ã¥é¤¬¹¶·â¤ò¼õ¤±¤¿ºÝ¤Ë°ì»þ°ÜÆ°¤òÄä»ß¤·¡¢¤½¤Î¸å°ÜÆ°¤òºÆ³«¤¹¤ë¤È¤¤¤¦»ÅÍͤȱ¿ÍÑ¤Î¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¼ÂÁõ¤¹¤ë ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡´°Á´¤ËŨ¤Î°ÜÆ°¤òÄä»ß¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢°ÜÆ°¤Î°ì»þÄä»ß¤ÈºÆ³«¤Ë¤Ä¤¤¤Æ¤Ï¤¹¤Ç¤Ë¥á¥½¥Ã¥É¤¬ÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤ò¾å¼ê¤¯³èÍѤ·¤¿À߷פò¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡°ì»þŪ¤Ë°Üư®ÅÙ¤òÃÙ¤¯¤¹¤ë¡¢¤È¤¤¤¦¾ì¹ç¤Ç¤¢¤ì¤Ð¡¢DOTween ¤Ë TimeScale ¤È¤¤¤¦ÊÑ¿ô¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤òÍøÍѤ·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¤³¤Î½èÍý¤Ï tween ÊÑ¿ô¤ËÂФ·¤Æ¼Â¹Ô¤Ç¤¤ë¤â¤Î¤Ç¡¢tween.timeScale = 0.05f; ¤È¤¤¤¦¤è¤¦¤ËÃͤòµ½Ò¤¹¤ë¤È¡¢DOTween ¤Î½èÍý¤Î»þ´Ö¤Î·Ð²á¤¬À©¸æ¤Ç¤¤Þ¤¹¡£
¡¡º£²ó¤Ç¤¢¤ì¤Ð tween ÊÑ¿ô¤Ë¤Ï DOPath ¥á¥½¥Ã¥É¤¬ÂåÆþ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢°ÜÆ°¤Î»þ´Ö¤Î·Ð²á®ÅÙ¤ò 1.0f ¤«¤é 0.05f ¤Þ¤Ç²¼¤²¤Æ¤·¤Þ¤¦¡¢¤È¤¤¤¦À©¸æ¤Ë¤Ê¤ê¤Þ¤¹¡£
Ì᤹¾ì¹ç¤Ë¤ÏºÆÅÙ tween.timeScale = 1.0f; ¤ÈÂåÆþ¤¹¤ì¤Ð°ÊÁ°¤ÈƱ¤¸°ÜÆ°¤Î»þ´Ö¤Î·Ð²á®ÅÙ¤ËÌá¤ê¤Þ¤¹¡£µÕ¤Ë 1.0f ¤è¤ê¤âÂ礤¯¤¹¤ì¤ÐÁáÁ÷¤ê¤Î½èÍý¤â½ÐÍè¤Þ¤¹¡£
¡¡¤¹¤°¤ËÃͤòÌᤷ¤Æ¤·¤Þ¤¦¤ÈÊѲ½¤¬¸«¤é¤ì¤Ê¤¤¤¿¤á¡¢¥³¥ë¡¼¥Á¥ó¤ÎÃæÃǽèÍý¤ò¾å¼ê¤¯³èÍѤ·¤Æ¡¢¾¯¤··Ð¤Ã¤Æ¤«¤é¸µ¤Î»þ´Ö¤Î·Ð²á®ÅÙ¤ËÌ᤹½èÍý¤òÀ߷פ·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤É¤Î¤è¤¦¤Ê½èÍý¤ò¡¢¤É¤Î¥¿¥¤¥ß¥ó¥°¤Çµ½Ò¤¹¤ì¤Ð¤¤¤¤¤«¤ò¹Í¤¨¤Æ¡¢TODO ¤Î¾ðÊó¤òºÇÂç¸Â¤Ë³èÍѤ·¤Þ¤·¤ç¤¦¡£
¼«Ê¬¤Ç¥×¥í¥°¥é¥à¤ò½ñ¤¯ºÝ¤Ë¤Ï¡¢TODO ¤Îµ½Ò¤â¼«Ê¬¤Ç¹Ô¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢º£¤«¤é½èÍý¤ÎÁȤßΩ¤ÆÊý¤Ë´·¤ì¤Æ¤¤¤¯¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
EnemyController.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤ò¤·¤Þ¤¹¡£
¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢Å¨¤¬¹¶·â¤ò¼õ¤±¤ë¤¿¤Ó¤Ë°ì½Ö»ß¤Þ¤ë¤è¤¦¤Ë¤Ê¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£±£¸¡¡¡Ý¥¥ã¥éÇÛÃÖÍѤΥݥåץ¢¥Ã¥×¤ÎºîÀ®¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯