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

¡¡¸½ºß¤ÏÍî²¼¤·¤Ê¤¤¸Â¤ê¡¢ÌµÀ©¸Â¤Ë¥²¡¼¥à¤¬Â³¤±¤é¤ì¤Þ¤¹¡£
¤³¤Î¼ê½ç¤Ç¤Ï¥²¡¼¥à¥¯¥ê¥¢ÍѤΥ´¡¼¥ëÃÏÅÀ¤ÎºîÀ®¤È¥²¡¼¥à¥¯¥ê¥¢¤òȽÄꤹ¤ë¥´¡¼¥ëÃÏÅÀ¤òÄɲ䷤ơ¢½ù¡¹¤Ë¥²¡¼¥à¥¯¥ê¥¢¤Î¾õÂÖ¤òºîÀ®¤·¤Æ¤¤¤­¤Þ¤¹¡£


¡ã¼ÂÁõ²èÌÌ¡¡¥´¡¼¥ëÃÏÅÀ¡ä



¼ê½ç£²£°¡¡¡¼¥²¡¼¥à¥¯¥ê¥¢½èÍý¤Î¼ÂÁõ¡¼
£³£µ¡¥¥²¡¼¥à¥¯¥ê¥¢ÍѤΥ´¡¼¥ëÃÏÅÀ¤òºîÀ®¤¹¤ë
£³£¶¡¥¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢¥´¡¼¥ëÃÏÅÀ¤Ë¿¯Æþ¤·¤¿ºÝ¤Ë¥²¡¼¥à¥¯¥ê¥¢¤òȽÄꤹ¤ë½èÍý¤òÄɲ乤ë



£³£µ¡¥¥²¡¼¥à¥¯¥ê¥¢ÍѤΥ´¡¼¥ëÃÏÅÀ¤òºîÀ®¤¹¤ë

Àß·×


¡¡¥´¡¼¥ëÃÏÅÀÍѤΥ²¡¼¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£¥´¡¼¥ëÃÏÅÀ¤Ë¤Ï²È¤Î²èÁü¤òÍøÍѤ·¤Æ¡¢ÃåÃϤǤ­¤ë¤è¤¦¤Ë¾²¤â¥»¥Ã¥È¤ÇÍÑ°Õ¤·¤Þ¤¹¡£
¾²¤ÎÉôʬ¤Ï¤¹¤Ç¤ËºîÀ®¤·¤Æ¤¢¤ë¥×¥ì¥Ï¥Ö¤òÍøÍѤ·¤ÆºîÀ®¤·¤Æ¤¤¤­¤Þ¤¹¡£(¥³¥é¥¤¥À¡¼¤Ê¤É¤¬¤¢¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤ¹¤ë¤Î¤ÇºÆºîÀ®¤Î¼ê´Ö¤¬¾Ê¤±¤Þ¤¹)


²èÁü¥Õ¥¡¥¤¥ë¤«¤é house ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡¥´¡¼¥ëÍѤ˻ÈÍѤ¹¤ë²èÁü¤òÁªÂò¤·¡¢ÁªÂò¤·¤¿¥Õ¥¡¥¤¥ë¤ò¤½¤Î¤Þ¤Þ¥Ò¥¨¥é¥ë¥­¡¼¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Þ¤¹¡£


¥Õ¥¡¥¤¥ë¤Î¾ì½ê¡¡¥Õ¥¡¥¤¥ë¤Î¾ì½ê¡¡Assets/Sunnyland/artwork/Environment/props/house.png



ÁªÂò»þ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡¥Ò¥¨¥é¥ë¥­¡¼¤Ë house ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£


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



Scene¥Ó¥å¡¼²èÁü



Game¥Ó¥å¡¼²èÁü



house ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾Á°¤ò GoalHouse ¤ËÊѹ¹¤¹¤ë


¡¡house ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢Ì¾Á°¤ò GoalHouse ¤ËÊѹ¹¤·¤Þ¤¹¡£


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



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



GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¦


¡¡GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤ÆÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£

¡¡Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Scale ¤ÎÃͤò (3, 3, 3) ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£²èÁü¤¬Â礭¤¯¤Ê¤ê¤Þ¤¹¡£
°ÌÃ֤ˤĤ¤¤Æ¤Ï¸åÄøÀßÄꤷ¤Þ¤¹¤Î¤Ç¡¢Position ¤ÎÃÍ¤Ï (0, 0, 0)¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£(°ã¤Ã¤Æ¤¤¤ì¤ÐÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤)

¡¡SpriteRenderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Order In Layer ¤ÎÃͤò 0 ¤«¤é 1 ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¶õÃæ¾²¤äŨ¤Ê¤É¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤è¤ê¤âɽ¼¨¤ÎÍ¥Àè½ç°Ì¤ò¹â¤¯¤·¡¢¥Ð¥ë¡¼¥ó¤ä¥­¥ã¥é¤è¤ê¤âÍ¥Àè½ç°Ì¤òÄ㤯¤¹¤ëÀßÄê¤Ë¤Ê¤ê¤Þ¤¹¡£


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



Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü


¡¡
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î°ìÈÖ²¼¤Ë¤¢¤ë Add Component ¥Ü¥¿¥ó¤ò²¡¤·¤Æ¡¢BoxCollider2D ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

¡¡Äɲä·¤¿ BoxCollider2D ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î IsTrigger ¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤Þ¤¹¡£

¡¡Edit Collider ¥Ü¥¿¥ó¤ò²¡¤·¤Æ¡¢Scene¥Ó¥å¡¼¤òÍøÍѤ·¤Æ¡¢¥³¥é¥¤¥À¡¼¤ÎÂ礭¤µ¤òÄ´À°¤·¤Þ¤¹¡£
²È¤ÎÀµÌÌÉÕ¶á¤ËÀßÃÖ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÉôʬ¤òÄ̲᤹¤ë¤È¡¢¥²¡¼¥à¥¯¥ê¥¢¤ÎȽÄê¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£


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



Scene¥Ó¥å¡¼²èÁü



¡¡°Ê¾å¤Ç GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤Ï´°Î»¤Ç¤¹¡£Â³¤±¤Æ¡¢¾²Éôʬ¤òÀßÃÖ¤·¤Æ¤¤¤­¤Þ¤¹¡£


GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¡¢Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¾²Éôʬ¤¬¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢Prefabs ¥Õ¥©¥ë¥À¤Ë¤¢¤ë AerialFloor_Mid ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤ·¤Æ¾²¤òºîÀ®¤·¤Þ¤¹¡£

¡¡Prefabs ¥Õ¥©¥ë¥ÀÆâ¤Î AerialFloor_Mid ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¡¢GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¡¢AerialFloor_Mid ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬Äɲ䵤ì¤Þ¤¹¡£


¡ã¼ê½çÆ°²è¡¡¥×¥ì¥Ï¥Ö¡¦¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤¹¤ë¡ä
https://gyazo.com/4a1ae33773cd31c433fa256f6c907397


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



¡¡Ì¾Á°¤ò Ground_Set ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£


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



Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¦

£±¡¥Â礭¤µ¤òÄ´À°¤¹¤ë

¡¡¤Þ¤ººÇ½é¤Ë¡¢¤½¤Î¤Þ¤Þ¤Ç¤ÏÂ礭¤µ¤¬¹ç¤ï¤Ê¤¤¤¿¤á¡¢Â礭¤µ¤òÄ´À°¤·¤Þ¤¹¡£

¡¡Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Scale ¤ò (0.3, 0.3, 0.3)¤ËÊѹ¹¤·¤Þ¤¹¡£
¤Þ¤¿ MoveObject ¥¹¥¯¥ê¥×¥È¤ÏÉÔÍפǤ¹¤Î¤Ç¡¢Remove Component ¤ò¹Ô¤Ã¤Æºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£


Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü



£²¡¥°ÌÃÖ¤òÄ´À°¤¹¤ë

¡¡¤Ä¤Å¤¤¤Æ°ÌÃÖ¤òÊѹ¹¤·¤Þ¤¹¡£²È¤ËÂФ·¤Æ¾²¤È¤Ê¤ë¤è¤¦¤ËÀßÃÖ¤·¤Þ¤¹¡£¤³¤Î¤¢¤È¡¢¾²Éôʬ¤Î¥Ö¥í¥Ã¥¯¤ò£³¤ÄÁý¤ä¤·¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¤â»²¹Í¤·¤Æ¤¯¤À¤µ¤¤¡£


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



Scene¥Ó¥å¡¼²èÁü



£³¡¥¾²¤òÊ£À½¤·¤Æʤ٤ë

¡¡Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë Nature_props_15 ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤ÆÊ£À½¤·¤Þ¤¹¡££³¤ÄÊ£À½¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£
²¼µ­¤Î¥Ò¥¨¥é¥ë¥­¡¼²èÁü¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¥×¥ì¥Ï¥Ö¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¿·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬Äɲ䵤ì¤ë¤È¡¢Äɲ䵤줿ʬ¤Ï¥¢¥¤¥³¥ó¤Ë¥×¥é¥¹É½¼¨¤¬ÉÕ¤­¤Þ¤¹¡£


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



¡¡¤¹¤Ù¤Æ Nature_props_15 ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¤ËÊ£À½¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢°ÌÃÖ¤ò¤º¤é¤·¤Æ²£¤Ë¤Ê¤é¤Ù¤Æ¤¯¤À¤µ¤¤¡£


Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü



¡¡»²¹ÍÍѤËÊ£À½¤·¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¤Ç¤¹¡£°ÌÃÖ¾ðÊó°Ê³°¤ÏƱ¤¸¤Ç¤¹¡£


Nature_props_15 (4) ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



Nature_props_15 (5) ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



Nature_props_15 (6) ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



£´¡¥¥×¥ì¥Ï¥Ö¤ò¥¢¥ó¥Ñ¥Ã¥¯¤·¤ÆÄ̾ï¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤¹¤ë

¡¡Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Prefab => Unpack Completely ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¤¹¤Ù¤Æ¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤¬¡¢¥×¥ì¥Ï¥Ö¤Ç¤Ï¤Ê¤¯¡¢Ä̾ï¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ê¤ê¤Þ¤¹¡£


¡ã¼ê½çÆ°²è¡¡¥×¥ì¥Ï¥Ö¤ò¥¢¥ó¥Ñ¥Ã¥¯¤¹¤ë¡ä
https://gyazo.com/06693d91d19cb0ef804d8333fcb03971


¡¡°Ê¾å¤Ç Ground_Set ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®¤Ï½ªÎ»¤Ç¤¹¡£


GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¤òÄ´À°¤·¤Æ¡¢À¸À®¤¹¤ëÃÏÅÀ¤òÀßÄꤹ¤ë


¡¡¥´¡¼¥ëÃÏÅÀ¤¬´°À®¤·¤Þ¤·¤¿¤Î¤Ç¡¢ºÇ¸å¤Ë¡¢¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë¾ì½ê¤òÀßÄꤷ¤Þ¤¹¡£
X ¼´¤Ï²èÌ̤α¦Ã¼¤Ë¡¢Y ¼´¤Ï ¥¹¥¿¡¼¥ÈÃÏÅÀ¤òƱ¤¸¹â¤µ¤ËÀßÄꤷ¤Þ¤¹¡£²¼µ­¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¤ÈScene¥Ó¥å¡¼²èÁü¤ò»²¹Í¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£


GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü(¥²¡¼¥à²èÌ̤ˤϱǤé¤Ê¤¤°ÌÃÖ)



¡¡°Ê¾å¤Ç¥´¡¼¥ëÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®¤Ï½ªÎ»¤Ç¤¹¡£


£³£¶¡¥¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢¥´¡¼¥ëÃÏÅÀ¤Ë¿¯Æþ¤·¤¿ºÝ¤Ë¥²¡¼¥à¥¯¥ê¥¢¤òȽÄꤹ¤ë½èÍý¤òÄɲ乤ë

Àß·×


¡¡¥´¡¼¥ëÃÏÅÀÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤·¤¿¤Î¤Ç¡¢¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¿·¤·¤¯ºîÀ®¤¹¤ë GoalChecker ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤Æ
¥­¥ã¥é¤È¥´¡¼¥ëÃÏÅÀ¤È¤ÎÀÜ¿¨È½Äê¤ò¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¥­¥ã¥é¤ÈľÀܤ֤Ĥ«¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¥´¡¼¥ëÃÏÅÀ¤Ø¿¯Æþ¤·¤¿ºÝ¤ËÀÜ¿¨È½Äê¤ò¹Ô¤¤¤¿¤¤¤¿¤á¡¢
OnTriggerEnter2D ¥á¥½¥Ã¥É¤òÍøÍѤ·¤Æ½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£¤³¤Î½èÍý¤ÎÃæ¤Ç¥¯¥ê¥¢¤Î½èÍý¤ò¼ÂÁõ¤¹¤ë¥í¥¸¥Ã¥¯¤È¤·¤Þ¤¹¡£

¡¡¤Ê¤ª¡¢ºÇ½é¤Ë£±²ó¤À¤±ÀÜ¿¨¤·¤¿»þ¤ËÀÜ¿¨È½Äê¤ò¹Ô¤¤¡¢°Ê¹ß¤Ï¥­¥ã¥é¤¬¿¯Æþ¤·¤Æ¤âÀÜ¿¨È½Äê¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤ËÀ©¸æ¤·¤Þ¤¹¡£
²¿¸Î¤Ê¤é¿¯Æþ¤¹¤ë¤¿¤Ó¤Ë²¿²ó¤â¥¯¥ê¥¢¤ÎȽÄ꤬¹Ô¤ï¤ì¤Æ¤·¤Þ¤¦¤Î¤òËɤ°¤¿¤á¤Ç¤¹¡£


GoalChecker ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë


¡¡Àë¸À¥Õ¥£¡¼¥ë¥É¤Ç¤Ï£³¤Ä¤ÎÊÑ¿ô¤òÀë¸À¤·¤Þ¤¹¡£

¡¡moveSpeed ÊÑ¿ô¤Ï¡¢¥´¡¼¥ëÃÏÅÀ¤¬Æ°¤¯Â®Å٤Ǥ¹¡£´ðËÜŪ¤Ë¤Ï¶õÃæ¾²¤Ê¤É¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÈƱ¤¸Â®ÅÙ¤ËÀßÄꤷ¤Þ¤¹¡£

¡¡stopPos ÊÑ¿ô¤Ï¡¢°ÜÆ°¤·¤Æ¤¤¤ë¥´¡¼¥ëÃÏÅÀ¤òÄä»ß¤µ¤»¤ë°ÌÃÖ¤ÎÀßÄê¤Ç¤¹¡£¤³¤ÎÃÏÅÀ¤Þ¤ÇÍ褿¤é°ÜÆ°¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤ËÀ©¸æ¤¹¤ë¤³¤È¤Ç¡¢²èÌ̤α¦Ã¼¤Ë¥´¡¼¥ëÃÏÅÀ¤¬Î±¤Þ¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

¡¡isGoal ÊÑ¿ô¤Ï¡¢¥´¡¼¥ëÃÏÅÀ¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ËÀßÄꤷ¤¿¥³¥é¥¤¥À¡¼¤È¥­¥ã¥é¤Î¥³¥é¥¤¥À¡¼¤¬ÀÜ¿¨¤·¤¿¤«¤É¤¦¤«¤ÎȽÄê¤ËÍѤ¤¤ëÀ©¸æÍѤÎÊÑ¿ô¤Ç¤¹¡£
¤³¤ÎÃͤ¬ false ¤Î´Ö¤Ï¥­¥ã¥é¤Ï¥´¡¼¥ëÃÏÅÀ¤Î¥³¥é¥¤¥À¡¼¤ÈÀÜ¿¨¤·¤Æ¤¤¤Ê¤¤¾õÂÖ¤òɽ¤·¤Þ¤¹¡£OnTriggerEnter2D ¥á¥½¥Ã¥É¤ÎÃæ¤Ç¤Ï¤³¤ÎÃͤò¸µ¤ËÀÜ¿¨È½Äê¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
ºÇ½é¤Ë¥­¥ã¥é¤¬¥³¥é¥¤¥À¡¼¤ÈÀÜ¿¨¤·¤¿ºÝ¤Ë¡¢Ãͤ¬ true ¤Ë¤Ê¤ê¤Þ¤¹¡£true °Ê¸å¤Ï¡¢¥³¥é¥¤¥À¡¼¤ÎÀÜ¿¨È½Äê¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤ËÀ©¸æ¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á£±²ó¤À¤±¥´¡¼¥ë¤ò¤·¤Æ¥¯¥ê¥¢¤·¤¿¤ÈȽÄꤵ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£


GoalChecker.cs

¡¡<=¡¡¥¯¥ê¥Ã¥¯¤¹¤ë¤È³«¤­¤Þ¤¹



GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë GoalChecker ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤¹¤ë


¡¡¥Ò¥¨¥é¥ë¥­¡¼¤Ë¤¢¤ë GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Þ¤¹¡£

¡¡ºîÀ®¤·¤¿ GoalChecker ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£public ½¤¾þ»Ò¤ÎÊÑ¿ô¤Ë½é´üÃͤ¬Æþ¤Ã¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£


GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



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


¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢°Ê²¼¤ÎÆ°ºî¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿¡¢¼«Ê¬¤Î½ñ¤¤¤¿¥×¥í¥°¥é¥à¤ò¸«Ä¾¤·¤Æ¡¢¤É¤Î¤è¤¦¤Ë½èÍý¤¬Æ°¤¯¤Î¤«¤ò¹Í¤¨¤Æ³Îǧ¤¹¤ë¤è¤¦¤Ë¿´¤¬¤±¤Æ¤¯¤À¤µ¤¤¡£


¡ã¼Â¹Ô¸¡¾ÚÆ°²è­¡¡¡GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬°ÜÆ°¤¹¤ë¡ä
https://gyazo.com/be2564420407addd2890557e39bda9d8


¡ã¼Â¹Ô¸¡¾ÚÆ°²è­¢¡¡GoalChecker ¥¹¥¯¥ê¥×¥È¤Ç»ØÄꤷ¤¿Ää»ß°ÌÃ֤ޤǰÜÆ°¤·¤¿¤é°ÜÆ°¤òÄä»ß¤¹¤ë¡ä
https://gyazo.com/9328aa62b9b73d4067a73918633172e3


¡ã¼Â¹Ô¸¡¾ÚÆ°²è­£¡¡GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀµÌÌÉÕ¶á¤Î¥³¥é¥¤¥À¡¼¤Ë¿¯Æþ¤·¤¿¤é Console ¤Ë£±²ó¤À¤±¥²¡¼¥à¥¯¥ê¥¢¤Èɽ¼¨¤µ¤ì¤ë¡ä
https://gyazo.com/7860f99ee3be14a5843ca786918e8108


GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Ï¥Ö¤Ë¤¹¤ë


¡¡GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Ï¥Ö¤Ë¤·¤Þ¤¹¡£
¥Ò¥¨¥é¥ë¥­¡¼¤«¤é GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ Prefabs ¥Õ¥©¥ë¥À¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
¥×¥ì¥Ï¥Ö¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£

¡¡¤Ê¤ª¡¢Ä̾ï¤Ï¥×¥ì¥Ï¥Ö¤Ë¤Ê¤Ã¤¿¤é¥Ò¥¨¥é¥ë¥­¡¼¤Î GoalHouse ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÏÉÔÍפʤΤǤ¹¤¬¡¢
¤³¤Î¶µºà¤Ç¤Ï¼¡¤Î¼ê½ç¤Ç¤âÍøÍѤ·¤Þ¤¹¤Î¤Ç¡¢¤Þ¤Àºï½ü¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£


¡ã¼ê½çÆ°²è¡¡¥×¥ì¥Ï¥Ö¤Ë¤¹¤ë¡ä
https://gyazo.com/d5dc0fc18691f4d1c82668b8f8884c57


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

¡¡¼¡¤Ï¡¡¼ê½ç£²£±¡¡¡¼¥ê¥¶¥ë¥Èɽ¼¨¤Î¼ÂÁõ¡¼¡¡¤Ç¤¹¡£

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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