ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2021ǯ09·î26Æü(Æü) 02:44:12ÍúÎò
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¢¨¡¡¥ì¥Ù¥ë¥¢¥Ã¥×¤Î½èÍý¤Ï̤¼ÂÁõ¤Ç¤¹¡£
¡¡¥Ð¥È¥ëÆâ¤Ç¤Î¥æ¡¼¥¶¡¼¤ËÂФ¹¤ëË«¾Þ¤äɾ²Á¤È¤·¤Æ¡¢¥Ð¥È¥ë¤´¤È¤Î·ë²Ì¤ò¥ê¥¶¥ë¥È¤È¤·¤Æɽ¼¨¤¹¤ëµ¡Ç½¤òÀ߷פ·¤Þ¤¹¡£
¡¡º£²ó¤Ï¥¨¥Í¥ß¡¼¤òÅݤ·¤¿ºÝ¤Ë³ÍÆÀ¤·¤¿·Ð¸³ÃÍ(Exp)¤ÎÁí¿ô¤È¡¢¥³¥ó¥Ü¤òÀ®¸ù¤·¤¿(¤¢¤ë¤¤¤Ï¥¯¥ê¥Æ¥£¥«¥ë¤·¤¿)²ó¿ô¤ò¡¢·ë²ÌÊó¹ð¤È¤·¤Æɽ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤Î¤Û¤«¤Ë¤âɽ¼¨¤·¤¿¤¤ÆâÍƤ¬¤¢¤ì¤Ð¡¢»ÅÍͤÈÀ߷פò¹Í¤¨¤ÆÄɲä·¤Þ¤¹¡£
¡¡½èÍý¤Îή¤ì¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
¡¡£±¡¥¥¨¥Í¥ß¡¼¤òÅݤ·¤¿¤é¡¢¥¨¥Í¥ß¡¼Â¦¤«¤é BattleManager ¦¤ËÍÑ°Õ¤·¤Æ¤¢¤ë¡¢¥Ð¥È¥ëÆâ¤Ç³ÍÆÀ¤·¤¿·Ð¸³Ãͤò´ÉÍý¤·¤Æ¤ª¤¯¤¿¤á¤ÎÊÑ¿ô¤Ë¡¢¥¨¥Í¥ß¡¼¤Î»ý¤Ä·Ð¸³Ãͤò²Ã»»¤¹¤ë½èÍý¤òÄɲä¹¤ë ¡¡£²¡¥¤¹¤Ù¤Æ¤Î¥¨¥Í¥ß¡¼¤òÅݤ·¤¿¤é¡¢¥·¡¼¥óÁ«°Ü¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¥ê¥¶¥ë¥È¤Îɽ¼¨¤ò¹Ô¤¦¤è¤¦¤Ë½èÍý¤ò½¤Àµ¤¹¤ë ¡¡£³¡¥¥ê¥¶¥ë¥È¤¬É½¼¨¤µ¤ì¤¿¤é¡¢¥¦¥¤¥ó¥É¥¦¤ä¡¢³ÍÆÀ¤·¤¿·Ð¸³ÃͤÎÃͤò¥«¥¦¥ó¥È¥¢¥Ã¥×¤¹¤ë¥¢¥Ë¥á±é½Ð¤Ê¤É¤ò¹Ô¤¤¡¢GameData ¥¯¥é¥¹¤Ë¤¢¤ë¥È¡¼¥¿¥ë·Ð¸³Ãͤò´ÉÍý¤¹¤ëÊÑ¿ô¤Ë¡¢º£²ó¤Î¥Ð¥È¥ë¤Ç³ÍÆÀ¤·¤¿·Ð¸³Ãͤò²Ã»»¤¹¤ë ¡¡¡¡¡¡¤·¤Ð¤é¤¯·Ð¤Ã¤¿¤é¼«Æ°Åª¤Ë¥·¡¼¥ó¤ÎÁ«°Ü¤ò¹Ô¤¦¤è¤¦¤Ë¤¹¤ë ¡¡¡¡¡¡¥·¡¼¥óÁ«°ÜÀè¤Ï¡¢¥Ü¥¹¥Ð¥È¥ë¤Ç¤¢¤ë¾ì¹ç¤Ë¤Ï¥ï¡¼¥ë¥É¥·¡¼¥ó¡¢Ä̾ï¤Î¥Ð¥È¥ë¤Î¾ì¹ç¤Ë¤Ï¥¹¥Æ¡¼¥¸¥·¡¼¥ó¤ØÁ«°Ü¤µ¤»¤ë
¡¡¤³¤Á¤é¤Îή¤ì¤òǰƬ¤ËÃÖ¤¤¤Æ¡¢½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¡¡¤Þ¤º¤ÏºÇ½é¤Ë¥ê¥¶¥ë¥Èɽ¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È·²¤òºîÀ®¤·¤Þ¤¹¡£
¡¡¿·¤·¤¯¥ê¥¶¥ë¥Èɽ¼¨ÍѤΠCanvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢¤½¤ÎÃæ¤Ëɽ¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È·²¤òÇÛÃÖ¤·¤Þ¤¹¡£
Çطʤä·Á¾õ¡¢¥Õ¥©¥ó¥È¤Ê¤É¡¢¼«Í³¤ËÀ߷פ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£»²¹ÍÎã¤òºÜ¤»¤Æ¤ª¤¤Þ¤¹¡£
´°À®»þ¤Î¥Ò¥¨¥é¥ë¥¡¼²èÁü
´°À®»þ¤Î Scene¥Ó¥å¡¼²èÁü
Canvas_Result ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
¡¡CanvasScaler ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀßÄê¤Î¤¦¤Á¡¢Reference Resolution ¤ÎÃͤϡ¢¼«Ê¬¤Î Game ¥Ó¥å¡¼¤Î²òÁüÅÙ¤ÎÃͤ˹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤¡£
lblTitle ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
imgBackFrame ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
ExpSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
lblExp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
txtExp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
TotalComboCountSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
lblTotalComboCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
txtTotalComboCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
¡¡DOTween ¤ò»È¤Ã¤¿¥¢¥Ë¥á±é½Ð¤òÊ£¿ô¼ÂÁõ¤·¤Æ¤¤¤Þ¤¹¡£
¥¢¥Ë¥á¤Î¥Ñ¥¿¡¼¥ó¡¢»þ´Ö¡¢Ease ¤ÎÀßÄê¤Ê¤É¤ò¼«Í³¤ËÊѹ¹¤·¤Æ¡¢¤É¤Î½èÍý¤Ë¤è¤Ã¤Æ¤É¤Î¥¢¥Ë¥á¤¬Ï¢Æ°¤·¤Æ¤¤¤ë¤«¤ò¤·¤Ã¤«¤ê¤ÈÍý²ò¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡DOTween ¤Î½èÍý¤ÏÈóƱ´ü½èÍý¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢¥×¥í¥°¥é¥à¾å¡¢1É䫤±¤Æ°ÜÆ°¤¹¤ë¡¢¤È¤¤¤¦ DOTween ¤Î½èÍý¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
¤½¤Î»þ´Ö¤òÂԤĤ³¤È¤Ê¤¯¡¢¼¡¤Î½èÍý¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ê£¿ô¤Î DOTween ¤Î½èÍý¤ò³¤±¤Æ¤«¤¯¤È¡¢¤¹¤Ù¤ÆƱ¤¸¥¿¥¤¥ß¥ó¥°¤Ç½èÍý¤µ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¡¡DOTween ¤Î½èÍý¤ò£±¤Ä¤º¤Ä¡¢½èÍý¤¬½ª¤ï¤Ã¤Æ¤«¤é¼¡¤Î DOTween ¤Î½èÍý¤ò¹Ô¤¦¤¿¤á¤Ë¡¢DOTween ¤Ë¤Ï Sequence(¥·¡¼¥±¥ó¥¹)¤È¤¤¤¦µ¡Ç½¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
Sequence ¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë Append(¥¢¥Ú¥ó¥É) ¥á¥½¥Ã¥É¤ò³èÍѤ¹¤ë¤³¤È¤Ë¤è¤ê¡¢Append ¥á¥½¥Ã¥É¤Î°ú¿ô¤Ë»ØÄꤷ¤¿ DOTween ¤Î½èÍý¤¬½ªÎ»¤·¤Æ¤«¤é¡¢
¼¡¤Î Append ¥á¥½¥Ã¥É¤Î°ú¿ô¤Ë»ØÄꤷ¤Æ¤¤¤ë DOTween ¤Î½èÍý¤ò¼Â¹Ô¤¹¤ë¡¢¤È¤¤¤¦½èÍý¤¬¼ÂÁõ½ÐÍè¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢º£²ó¤Î¾ì¹ç¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ê¥¢¥Ë¥á±é½Ð¤ò½çÈ֤ˣ±¤Ä¤º¤Ä½èÍý¤·¤¿¤¤¤¿¤á¡¢Append ¥á¥½¥Ã¥É¤ò³èÍѤ·¤Æ½èÍý¤òµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡ã¥ê¥¶¥ë¥È¤Îɽ¼¨½èÍý¤Î½çÈÖ¡ä
¡¡£±¡¥Canvas ɽ¼¨¡£¤³¤Î»þÅÀ¤Ç¤Ï Result ¤Îʸ»ú¤À¤±½Ð¤ë £²¡¥¥ê¥¶¥ë¥Èɽ¼¨ÍѤΥե졼¥à¤ò¥¢¥Ë¥áɽ¼¨(²£Êý¸þ¤Ë¿¤Ð¤¹) ¡¡£³¡¥EXP ɽ¼¨ £´¡¥EXP ²Ã»»¥¢¥Ë¥á £µ¡¥¥³¥ó¥Ü¿ô ɽ¼¨ £¶¡¥¥³¥ó¥Ü¿ô ²Ã»»¥¢¥Ë¥á
¡¡¤³¤ì¤ò¤¹¤Ù¤Æ°ì½ï¤Ë½èÍý¤»¤º¤Ë¡¢¾å¤«¤é½çÈ֤ˡ¢Á°¤Î½èÍý¤¬½ªÎ»¤·¤Æ¤«¤é¼¡¤Î DOTween ¤Î½èÍý¤ò¼Â¹Ô¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¼ÂÁõÆ°²è¤â³Îǧ¤·¤Æ¤ß¤Æ¡¢¥¤¥á¡¼¥¸¤ò¤Ä¤«¤ó¤Ç¤¯¤À¤µ¤¤¡£
¡¡½èÍý¤ÎÆâÍƤòÍý²ò¤·¤Ê¤¬¤é¡¢¥×¥í¥°¥é¥à¤ò½ñ¤¤¤Æ¤¤¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¡¡¿·¤·¤¤ DOTweeen ¤Î¥á¥½¥Ã¥É¤â¤¤¤¯¤Ä¤«½Ð¤Æ¤¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¼«Ê¬¤ÇÄ´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£
NormalResultCancas.cs
¡¡¥¹¥¯¥ê¥×¥ÈÆâ¤Ë¤¢¤ë¡¢²¼µ¤ÎÌ¿ÎáÉôʬ¤òõ¤·¤Æ¤¯¤À¤µ¤¤¡£
Åݤ·¤¿¥¨¥Í¥ß¡¼¤Î¿ô¤È¥Ð¥È¥ë¤Î¥¯¥ê¥¢ÌÜɸÃͤȤòȽÄꤷ¤Æ¤¤¤ëÉôʬ¤Ë¤¢¤ê¤Þ¤¹¡£
¡¡SceneStateManager.instance.PreparateStageScene(SceneName.Main);
¡¡¤³¤ÎÌ¿ÎáÉôʬ¤ò²¼µ¤ÎÌ¿Îáʸ¤Ë½ñ¤´¹¤¨¤Æ¡¢¥¨¥Í¥ß¡¼¤òÁ´ÌǤµ¤»¤Æ¤Æ¤â¡¢¤¹¤°¤Ë¥·¡¼¥óÁ«°Ü¤ÏȯÀ¸¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
// ¥Ð¥È¥ë½ªÎ»»þ¤Î½èÍý StartCoroutine(OnExit());
¡¡¿·¤·¤¤ÊÑ¿ô¤ÎÄɲäȡ¢OnExit ¥á¥½¥Ã¥É¤ÎÄɲäò¹Ô¤¤¤Þ¤¹¡£
BattleManager.cs
¡¡EnemyController ¥¯¥é¥¹¤Ï BattleManager ¥¯¥é¥¹¤Î¾ðÊó¤òÊÑ¿ô¤Ç´ÉÍý¤·¤Æ¤¤¤ë¾õÂ֤ˤʤäƤ¤¤Þ¤¹¡£
¤Þ¤¿¡¢EnemyData ¥¯¥é¥¹¤Ë¤Ï Exp ¤Î¾ðÊ󤬡¢¥¨¥Í¥ß¡¼¤´¤È¤ËÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡''EnemyController ¥¯¥é¥¹¤Ë¡¢EnemyData ¤Î¾ðÊó¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£DataBaseManager ¥¯¥é¥¹¤Ë EnemyDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òÅÐÏ¿¤·¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤òÍøÍѤ·¤Þ¤·¤ç¤¦¡£
¤½¤¦¤¹¤ë¤³¤È¤Ç¡¢Exp ¤Î¾ðÊ󤬥¨¥Í¥ß¡¼¤´¤È¤Ë¥Ç¡¼¥¿¤«¤éÀßÄꤵ¤ì¤Þ¤¹''¡£
EnemyData ¤Ë¤Ä¤¤¤Æ¤Î¥Ò¥ó¥È
¡¡EnemyData ¤¬½àÈ÷¤Ç¤¤¿¤é¡¢½èÍý¤ò´°À®¤µ¤»¤Þ¤·¤ç¤¦
¡¡Å¬µ¹¤Ê¥¿¥¤¥ß¥ó¥°¤Ç¡¢BattleManager ¥¯¥é¥¹Æâ¤ËÍÑ°Õ¤·¤¿ EXP ¤ò²Ã»»¤¹¤ë¥á¥½¥Ã¥É¤ò¼Â¹Ô¤·¡¢¥¨¥Í¥ß¡¼¤òÅݤ¹¤¿¤Ó¤Ë¡¢³ÍÆÀ¤·¤¿ EXP ¤ò²Ã»»¤¹¤ë¥í¥¸¥Ã¥¯¤ò´°À®¤µ¤»¤Æ¤¯¤À¤µ¤¤¡£
¡¡¥¨¥Í¥ß¡¼¤òÅݤ¹¤¿¤Ó¤Ë¡¢BattleManager ¥¯¥é¥¹¤Î currentBattleTotalExp ÊÑ¿ô¤¬²Ã»»¤µ¤ì¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Þ¤¹¡£
¥²¡¼¥àÆâ¤Î½èÍý¤¬¤É¤ÎÉôʬ¤È¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ë¤«¤òÍý²ò¤·¤¿¾å¤Ç¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦¤³¤È¤¬½ÅÍפǤ¹¡£¤½¤¦¤¹¤ë¤³¤È¤Ç¡¢ÉÔ¶ñ¹ç¤¬¤¢¤ë¾ì¹ç¤Ë¸«¤Ä¤±¤ä¤¹¤¯¡¢½¤Àµ²Õ½ê¤òÆÃÄꤷ¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¤¹¤Ù¤Æ¤Î¥¨¥Í¥ß¡¼¤òÅݤ·¤¿ºÝ¡¢¥·¡¼¥óÁ«°Ü¤ÎÁ°¤Ë¥ê¥¶¥ë¥Èɽ¼¨¤¬¹Ô¤ï¤ì¤Æ¡¢³ÍÆÀ¤·¤¿ Exp ¤ÎÃͤ¬¥«¥¦¥ó¥È¥¢¥Ã¥×¥¢¥Ë¥á¤ò¤·¤Æɽ¼¨¤µ¤ì¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¤³¤ÎÆ°ºî¤¬ÌäÂê¤Ê¤¯Æ°¤¤¤¿¤é¡¢¥¯¥ê¥Æ¥£¥«¥ë¤Ê¤É¤Î²ó¿ô¤Ë¤Ä¤¤¤Æ¤â¡¢Å¬µ¹¤Ê¥¿¥¤¥ß¥ó¥°¤Ë½èÍý¤òÄɲ䷤ƤߤƤ¯¤À¤µ¤¤¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯