Unity¤Ë´ØÏ¢¤¹¤ëµ­»ö¤Ç¤¹

¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤­¤Þ¤¹¡£

ȯŸ£±£¸¡¡¡¼¥Ð¥ì¥Ã¥ÈÍѤΥܥ¿¥ó¤Î¼«Æ°À¸À®¡¼
£³£·¡¥BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë
£³£¸¡¥BulletSelectManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¼«Æ°À¸À®¤¹¤ë½èÍý¤òÄɲ乤ë



¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

¡¡¡¦for ʸ¤È Grid Layout Group ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÍøÍѤ·¤¿¥¤¥ó¥¹¥¿¥ó¥·¥¨¥¤¥È½èÍý¤Î¼ÂÁõÎã



£³£·¡¥BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë

£±¡¥Àß·×


¡¡Àè¤Û¤É¤Î¼ê½ç¤ÇºîÀ®¤·¤Æ¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò¥¹¥¯¥ê¥×¥È¤è¤ê¼«Æ°¤ÇÀ¸À®½ÐÍè¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¸½ºß¤Î¼ê½ç¤ò³Îǧ¤·¤Þ¤¹¡£

¡ãÀß·×ÆâÍÆ¡ä
¡»¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤òºîÀ®¤·¡¢¥×¥ì¥Õ¥¡¥Ö¤Ë¤¹¤ë
¡¦¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò£´¤ÄÀ¸À®¤·¡¢¿åÊ¿Êý¸þ¤Ø¤ÈÀ°Î󤵤»¤Æʤ٤ë
¡¦¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò²¡¤¹¤³¤È¤Ç¡¢¾ï¤Ë£±¤Ä¤Î¥Ð¥ì¥Ã¥È¤òÁªÂò¤·¤Æ¤¤¤ë¾õÂÖ¤òºî¤ê½Ð¤¹(Ê£¿ô¤Î¥Ð¥ì¥Ã¥È¤ÏƱ»þ¤ËÁªÂò¤Ç¤­¤Ê¤¤)
¡¦ÁªÂò¤·¤Æ¤¤¤ë¥Ð¥ì¥Ã¥È¤Î¼ïÎà¤Ë¹ç¤ï¤»¤Æ¡¢À¸À®¤µ¤ì¤ë¥Ð¥ì¥Ã¥È¤Î²èÁü¤òÊѹ¹¤¹¤ë
¡¦Ê£¿ô¤Î¥Ð¥ì¥Ã¥È¤Î¥Ç¡¼¥¿¤ò°·¤¦¤¿¤á¡¢¥¨¥Í¥ß¡¼¤ÈƱ¤¸¤è¤¦¤Ë¥Ð¥ì¥Ã¥È¤Î¥Ç¡¼¥¿ÀìÍѤΥ¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢¥Ð¥ì¥Ã¥È¤Î¥Ç¡¼¥¿¤òÅÐÏ¿¤¹¤ë
¡¦¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò£´¤ÄÀ¸À®¤¹¤ëºÝ¤Ë¡¢¥Ð¥ì¥Ã¥È¤Î¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤è¤ê¥Ç¡¼¥¿¤ò¼õ¤±¼è¤Ã¤Æ³Æ¥Ç¡¼¥¿¤Ë¹ç¤ï¤»¤Æ¿¶¤ëÉñ¤¤¤òÊѹ¹¤µ¤»¤ë

¡¡¤³¤Î¼ê½ç¤Ç¤Ï¡¢¼¡¤Î¼ÂÁõ¤ò¹Ô¤¤¤Þ¤¹¡£

¡¦¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò£´¤ÄÀ¸À®¤·¡¢¿åÊ¿Êý¸þ¤Ø¤ÈÀ°Î󤵤»¤Æʤ٤ë

¡¡¾åµ­¤Î¼ÂÁõ¤ò¡¢£²¤Ä¤Î¼ê½ç¤Ëʬ¤±¤ÆÀ߷פò¹Ô¤¤¤Þ¤¹¡£

¡¡¥×¥ì¥Õ¥¡¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤Ç¤¹¤¬¡¢¥¹¥¯¥ê¥×¥È¤«¤éÀ¸À®¤¹¤ë¤³¤È¤Ï²Äǽ¤Ê¾õÂ֤Ǥ¹¤¬¡¢
À¸À®¤µ¤ì¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁàºî¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ÀìÍѤΥ¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Æ¡¢¥¢¥¿¥Ã¥Á¤·¤Æ¤ª¤¯¤³¤È¤¬É¬Íפˤʤê¤Þ¤¹¡£

¡¡¤½¤Î¤¿¤á¡¢¤Þ¤º¤Ï¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤Î¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢¤½¤Î¸å¡¢¥Ü¥¿¥ó¤ò¼«Æ°À¸À®¤·¡¢¥¹¥¯¥ê¥×¥È¤òÍøÍѤ·¤Æ
¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ÎÀ©¸æ¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£


£²¡¥BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë


¡¡¤³¤Î¥¹¥¯¥ê¥×¥È¤ÎÌÜŪ¤Ï¡¢btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ä¡¢¤½¤³¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÀ©¸æ¤¹¤ë¤³¤È¤Ë¤¢¤ê¤Þ¤¹¡£
¤Þ¤º¤Ï¡¢Button ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÁàºî¤Ç¤­¤ë¤è¤¦¤Ë¡¢Button ·¿¤ÎÊÑ¿ô¤òÀë¸À¤·¤Þ¤¹¡£


BulletSelectDetail.cs


¡¡¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£


£³¡¥btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄê¤ò¹Ô¤¦


¡¡Prefabs ¥Õ¥©¥ë¥À¤Ë¤¢¤ë btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î°ìÈÖ¾å¤Ë¤¢¤ë Open Prefab ¤ò²¡¤·¤Æ¥×¥ì¥Õ¥¡¥ÖÊÔ½¸¥â¡¼¥É¤ËÀÚ¤êÂؤ¨¤Þ¤¹¡£
BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£

¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢BulletSelectDetail ¥¹¥¯¥ê¥×¥È¤Î btnBulletSelect ÊÑ¿ô¤ËŬµ¹¤Ê¾ðÊó¤ò¥¢¥µ¥¤¥ó¤·¤ÆÅÐÏ¿¤·¤Þ¤¹¡£


¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£


£³£¸¡¥BulletSelectManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¼«Æ°À¸À®¤¹¤ë½èÍý¤òÄɲ乤ë

¡¡

£±¡¥Àß·×


¡¡btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤Þ¤·¤¿¤Î¤Ç¡¢
¤³¤Î¥¹¥¯¥ê¥×¥È¤òÍøÍѤ·¤Æ¼«Æ°À¸À®¤ò¹Ô¤¤¡¢¤½¤ì¤ò List ¤ØÂåÆþ¤·¤Æ´ÉÍý¤ò¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£


£²¡¥BulletSelectManager ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡¥Ò¥¨¥é¥ë¥­¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤­¡¢Create Empty ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢BulletSelectManager ¤Ë̾Á°¤òÊѹ¹¤·¤Þ¤¹¡£


¥Ò¥¨¥é¥ë¥­¡¼²èÁü



¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡°Ê¾å¤Ç¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï´°À®¤Ç¤¹¡£¼¡¤Î¼ê½ç¤Ç¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£


£³¡¥BulletSelectManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë


¡¡¥×¥ì¥Õ¥¡¥Ö¤Î btnBulletSelect ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¡¢´ÉÍý¤¹¤ë¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Þ¤¹¡£
¥Ð¥ì¥Ã¥ÈÁªÂò¥Ü¥¿¥ó¤Î¿ô¤Ï£´¤Ä¤Ç¤¹¤Î¤Ç¡¢¤³¤Á¤é¤âÀßÄêÃͤȤ·¤ÆÊÑ¿ô¤òÍÑ°Õ¤·¤ÆÍøÍѤ·¤Þ¤¹¡£
Äê¿ô¤È¤·¤ÆÍøÍѤ¹¤ë¾ì¹ç¡¢ÊÑ¿ô¤ÎÀë¸À»þ const ½¤¾þ»Ò¤ò°ì½ï¤ËÀë¸À¤¹¤ë¤³¤È¤Ç¥²¡¼¥àÆâ¤ÇÊѲ½¤ÎȯÀ¸¤·¤Ê¤¤ÃͤȤ·¤ÆÀë¸À¤Ç¤­¤Þ¤¹¡£

¡¡¥Ð¥ì¥Ã¥ÈÁªÂò¥Ü¥¿¥ó¤ÎÀ¸À®°ÌÃ֤ˤϡ¢Grid Layout Group ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î Transform ¤ò»ØÄꤷ¤Þ¤¹¡£
¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤ê¥Ð¥ì¥Ã¥ÈÁªÂò¥Ü¥¿¥ó¤Ï¡¢¤½¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÀ¸À®¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¡¢
Grid Layout Group ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Îµ¡Ç½¤Ë¤è¤Ã¤Æ¡¢À¸À®¤µ¤ì¤¿¥Ð¥ì¥Ã¥ÈÁªÂò¥Ü¥¿¥ó¤¬¼«Æ°Åª¤Ë¿åÊ¿Êý¸þ¤ËÀ°Î󤵤ì¤ÆʤӤޤ¹¡£
À¸À®¤µ¤ì¤ë¤¿¤Ó¤Ë°ÌÃÖ¾ðÊó¤òÀßÄꤷ¤Æ¤¤¤Ê¤¤¤Î¤Ï¤½¤Î¤¿¤á¤Ç¤¹¡£¤³¤Îµ¡Ç½¤¬¤Ê¤±¤ì¤Ð¡¢¤¹¤Ù¤ÆƱ¤¸°ÌÃÖ¤ËÀ¸À®¤µ¤ì¤Æ¤¤¤Þ¤¤¤Þ¤¹¡£


BulletSelectManager.cs


¡¡¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£


£´¡¥BulletSelectManager ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë BulletSelectManager ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄê¤ò¹Ô¤¦


¡¡¥Ò¥¨¥é¥ë¥­¡¼¤ËºîÀ®¤·¤¿ BulletSelectManager ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë BulletSelectManager ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£

¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢BulletSelectManager ¥¹¥¯¥ê¥×¥È¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ëÊÑ¿ô¤ËŬµ¹¤Ê¾ðÊó¤ò¥¢¥µ¥¤¥ó¤·¤ÆÅÐÏ¿¤·¤Þ¤¹¡£
BulletTran ÊÑ¿ô¤Ë¤Ï¡¢Á°²ó¤Î¼ê½ç¤ÇºîÀ®¤·¤¿ BulletSelectSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¼êÆ°¤Ç¥Ü¥¿¥ó¤Î¥×¥ì¥Õ¥¡¥Ö¤òÀßÃÖ¤·¤¿°ÌÃ֤ˤʤê¤Þ¤¹¡£


¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£


£µ¡¥¥²¡¼¥à¤ò¼Â¹Ô¤·¤ÆÆ°ºî¤ò³Îǧ¤¹¤ë


¡¡½èÍý¤ò¼ÂÁõ¤·¤¿¤é¥²¡¼¥à¤ò¼Â¹Ô¤·¤ÆµóÆ°¤ò³Îǧ¤·¤Þ¤¹¡£
BulletSelectManager ¥¹¥¯¥ê¥×¥È¤Î Start ¥á¥½¥Ã¥ÉÆâ¤Ë¡¢¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤ò¼«Æ°À¸À®¤¹¤ë¥á¥½¥Ã¥É¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢
¤½¤Á¤é¤¬¼Â¹Ô¤µ¤ì¤ì¤Ð¥Ð¥ì¥Ã¥ÈÁªÂòÍѤΥܥ¿¥ó¤¬»ØÄꤵ¤ì¤¿°ÌÃ֤ˤµ¤ì¤Þ¤¹¡£


¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯


¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£

¡¡¼¡¤Ï¡¡È¯Å¸£±£¹¡¡¡¼À¤³¦´Ñ¤Ë¹ç¤ï¤»¤¿¥²¡¼¥àÁǺà¤ÎÁªÄ꡼¡¡¤Ç¤¹¡£

¥³¥á¥ó¥È¤ò¤«¤¯


¡Öhttp://¡×¤ò´Þ¤àÅê¹Æ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

ÍøÍѵ¬Ìó¤ò¤´³Îǧ¤Î¤¦¤¨¤´µ­Æþ²¼¤µ¤¤

Menu


´ðÁÃ

µ»½Ñ/Ãμ±(¼ÂÁõÎã)

3D¥¢¥¯¥·¥ç¥ó¥²¡¼¥à

2D¤ª¤Ï¤¸¤­¥²¡¼¥à(ȯŸÊÔ)

2D¶¯À©²£¥¹¥¯¥í¡¼¥ë¥¢¥¯¥·¥ç¥ó(ȯŸÊÔ)

2D¥¿¥Ã¥×¥·¥å¡¼¥Æ¥£¥ó¥°(³ÈÄ¥ÊÔ)

¥ì¡¼¥¹¥²¡¼¥à(È´¿è)

2DÊüÃÖ¥²¡¼¥à(ȯŸÊÔ)

3D¥ì¡¼¥ë¥¬¥ó¥·¥å¡¼¥Æ¥£¥ó¥°(±þÍÑÊÔ)

3Dæ½Ð¥²¡¼¥à(È´¿è)

2D¥ê¥¢¥ë¥¿¥¤¥à¥¹¥È¥é¥Æ¥¸¡¼

3D¥¿¥Ã¥×¥¢¥¯¥·¥ç¥ó(NavMeshAgent »ÈÍÑ)

2D¥È¥Ã¥×¥Ó¥å¡¼¥¢¥¯¥·¥ç¥ó(¥«¥¨¥ë¤Î°Ù¤Ë¡Á¡¢¥Ü¥³¥¹¥«¥¦¥©¡¼¥ºÉ÷)

VideoPlayer ¥¤¥Ù¥ó¥ÈϢư¤Î¼ÂÁõÎã

VideoPlayer ¥ê¥¹¥ÈÆ⤫¤é¥à¡¼¥Ó¡¼ºÆÀ¸¤Î¼ÂÁõÎã(ȯŸ)

AR ²èÁüÉÕ¤­¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À®¤Î¼ÂÁõÎã

AR ¥ê¥¹¥ÈÆ⤫¤éÀ¸À®¤Î¼ÂÁõÎã(ȯŸ)

2D¥È¥Ã¥×¥Ó¥å¡¼¥¢¥¯¥·¥ç¥ó(¥µ¥Ð¥¤¥Ð¡¼É÷)

private



¤³¤Î¥µ¥¤¥ÈÆâ¤ÎºîÉʤϥæ¥Ë¥Æ¥£¤Á¤ã¤ó¥é¥¤¥»¥ó¥¹¾ò¹à¤Î¸µ¤ËÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£

´ÉÍý¿Í/Éû´ÉÍý¿Í¤Î¤ßÊÔ½¸¤Ç¤­¤Þ¤¹