ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2021ǯ08·î30Æü(·î) 12:24:13ÍúÎò
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¥«¥ì¥ó¥·¡¼¤ÎÍ×ÁǤ¬¥²¡¼¥àÆâ¤Ë²Ã¤ï¤ë¤³¤È¤Ë¤è¤ê¡¢¡Ú¤³¤ÎÃͤò¾ÃÈñ¤¹¤ë¤³¤È¤Ç¥¥ã¥é¤ÎÇÛÃÖ¤ò¹Ô¤¦¡Û¤È¤¤¤¦¿·¤·¤¤µ¡Ç½¤Î¼ÂÁõ¤â²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¸½ºß¤Ï¤É¤Î¥¥ã¥é¤Ç¤â¼«Í³¤ËÇÛÃÖ¤¬²Äǽ¤Ç¤¢¤ë¤¿¤á¡¢¥«¥ì¥ó¥·¡¼Í×ÁǤˤè¤Ã¤ÆÇÛÃÖ¤¹¤ëºÝ¤Ë¥×¥ì¥¤¥ä¡¼¤ÎÁªÂò»è¤¬Áý¤¨¤ë¤³¤È¤Ë¤Ä¤Ê¤¬¤ê¤Þ¤¹¡£
¥¥ã¥é¤Î¥Ç¡¼¥¿¤Ë¿·¤·¤¯¥³¥¹¥È¤òÄɲä·¡¢Àǽº¹¤ò¹Íθ¤·¤¿¥³¥¹¥ÈÃͤòÀßÄꤷ¤Æ¤ª¤¯¤³¤È¤Ç¡¢¡Ö¥³¥¹¥È¤Î¹â¤¤¹âÀǽ¥¥ã¥é¡×¤ä¡Ö¥³¥¹¥È¤ÎÄ㤤¤â¤Î¤Î¤¹¤°¤ËÇÛÃÖ¤¬²Äǽ¤Ê¥¥ã¥é¡×¤È¤¤¤Ã¤¿·Á¤ÇÆÃħÉÕ¤±¤ò¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤³¤ì¤ÏÍ·¤ÓÊý¤ÎÄó°Æ¤Ë¤â¤Ä¤Ê¤¬¤ë¤Î¤Ç¡¢¹Í¤¨¤º¤ËÇÛÃÖ¤·¤Æ¤âÍ·¤Ù¤ë¤¬¡¢¤·¤Ã¤«¤ê¤È¹Í¤¨¤Æ¶ãÌ£¤·¤ÆÇÛÃÖ¤ò¤¹¤ë¡¢¤È¤¤¤¦¥×¥ì¥¤¥¹¥¿¥¤¥ë¤òÄó°Æ½ÐÍè¤Þ¤¹¡£
¡¡°Ê²¼¤ÎÆâÍƤǼÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¼ê½ç£²£·¡¡¡¼¥«¥ì¥ó¥·¡¼µ¡Ç½¤Î¼ÂÁõ¡¼
£´£µ¡¥GameData ¥¹¥¯¥ê¥×¥È¤È UIManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë¡£Canvas Æâ¤Ë¥«¥ì¥ó¥·¡¼É½¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÇÛÃÖ¤¹¤ë £´£¶¡¥GameManager ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¡¢»þ´Ö¤Î·Ð²á¤Ë¹ç¤ï¤»¤Æ¥«¥ì¥ó¥·¡¼¤¬²Ã»»¤µ¤ì¤ëµ¡Ç½¤ò¼ÂÁõ¤¹¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ½èÍý¤ò¼ÂÁõ¤¹¤ë
£´£µ¡¥GameData ¥¹¥¯¥ê¥×¥È¤È UIManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë¡£Canvas Æâ¤Ë¥«¥ì¥ó¥·¡¼É½¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÇÛÃÖ¤¹¤ë
¡¡¤Û¤È¤ó¤É¤Î¥¿¥ï¡¼¥Ç¥£¥Õ¥§¥ó¥¹¥²¡¼¥à¤Ç¤Ï¡¢¥²¡¼¥àÆâ¤Î»þ´Ö¤¬·Ð²á¤¹¤ë¤´¤È¤Ë¡¢¥«¥ì¥ó¥·¡¼(Ä̲ß)¤¬ÃßÀѤµ¤ì¤Æ¤¤¤¡¢
¤½¤ì¤ò³Æ¥¥ã¥é¤´¤È¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¥³¥¹¥Èʬ¾ÃÈñ¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥¥ã¥é¤ò¥²¡¼¥àÆâ¤ËÇÛÃ֤Ǥ¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
(³ÆÍѸì¤Ï¥²¡¼¥à¤Ë¤è¤ê°Û¤Ê¤ê¤Þ¤¹¤¬¡¢¥·¥¹¥Æ¥àŪ¤ÊµóÆ°¤ÏƱ¤¸¤Ç¤¹¡£¥«¥ì¥ó¥·¡¼¤¬¥Þ¥Ê¤È¤¤¤¦Ì¾¾Î¤Ç¤¢¤Ã¤¿¤ê¤·¤Þ¤¹)
¡¡¤¹¤Ç¤Ë¥¥ã¥é¤òÇÛÃÖ¤¹¤ë½èÍý¤Ï½ÐÍè¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤ÎÉôʬ¤Ë¥³¥¹¥È¤Î³Îǧ¤È»Ùʧ¤¤¤Îµ¡Ç½¤òÄɲä·¡¢¥³¥¹¥È¤ò»Ùʧ¤Ã¤Æ¤Ï¤¸¤á¤Æ¥¥ã¥é¤òÇÛÃ֤Ǥ¤ë¤è¤¦¤Ë½¤Àµ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡º£²ó¤Î¼ê½ç¤ÎÀ߷פǤϡ¢¤³¤Î¥³¥¹¥È¤Î»Ùʧ¤¤¤ËÍøÍѤǤ¤ë¥«¥ì¥ó¥·¡¼¤ÎÍ×ÁǤò¼ÂÁõ¤¹¤ë¤³¤È¤¬ÌÜŪ¤Ç¤¹¡£
¼¡¤Î¼ê½ç¤Ç¡¢¤³¤Î¥«¥ì¥ó¥·¡¼¤òÍøÍѤ·¤Æ¡¢¥³¥¹¥È¤ò»Ùʧ¤Ã¤Æ¥¥ã¥é¤òÇÛÃÖ¤¹¤ë½èÍý¤ò¼ÂÁõ¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡¤³¤Î¤è¤¦¤Ë¿·¤·¤¤µ¡Ç½¤Î¼ÂÁõ¤Ï¡¢Ê£¿ô¤Î°Û¤Ê¤ëµ¡Ç½¤Î¼ÂÁõ¤ÎÀѤ߽Ťͤȡ¢¤½¤ì¤é¤ò¾å¼ê¤¯ÁȤ߹ç¤ï¤»¤Æ¥í¥¸¥Ã¥¯¤òºî¤ë¤³¤È¤Ë¤è¤Ã¤Æ¼ÂÁõ¤µ¤ì¤Þ¤¹¡£
¡¡¤Þ¤º¤Ï¥«¥ì¥ó¥·¡¼¤ÎÍ×ÁǤˤĤ¤¤Æ¡¢½èÍý¤ÎÁ´ÂΤÎή¤ì¤ò¹Í¤¨¤Æ¤¤¤¤Þ¤¹¡£¤½¤Î¸å¡¢Àß·×¤Î¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Þ¤·¤ç¤¦¡£
¥¹¥¯¥ê¥×¥È¤ò½ñ¤¯¤Î¤Ï¡¢¤³¤ì¤é¤¬´°À®¤·¡¢½èÍý¤ÎÁ´ÂΤ¬½ÐÍè¾å¤¬¤Ã¤Æ¤«¤é¤Ë¤Ê¤ê¤Þ¤¹¡£
¥¤¥á¡¼¥¸¤òºî¤Ã¤Æ¤¤¤¯¤³¤È¤¬Èó¾ï¤Ë½ÅÍפˤʤê¤Þ¤¹¤Î¤Ç¡¢ÁÛÁüÎϤò¤Õ¤ó¤À¤ó¤ËƯ¤«¤»¤Æ¤¯¤À¤µ¤¤¡£
¡¡¥«¥ì¥ó¥·¡¼¤ò´ÉÍý¤¹¤ë¤Ë¤Ï¡¢¥«¥ì¥ó¥·¡¼¤À¤±¤Ç¤Ï¤Ê¤¯¡¢¤½¤ì¤Ë´Ø¤ï¤ë¤¤¤¯¤Ä¤«¤Î¾ðÊó¤¬É¬ÍפǤ¹¡£¤Þ¤¿¡¢¤³¤Î¾ðÊó¤ò¤É¤Î¥¯¥é¥¹¤ËÍÑ°Õ¤·¤Æ´ÉÍý¤µ¤»¤ë¤«¤â°ì½ï¤Ë¹Í¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
Æä˥«¥ì¥ó¥·¡¼¤ò´ÉÍý¤·¤Æ¤¤¤ë¥¯¥é¥¹¤ò»²¾È¤¹¤ë¤³¤È¤¬º¤Æñ¤Ç¤¢¤ë¤È¡¢¥¹¥¯¥ê¥×¥È¤«¤é¥«¥ì¥ó¥·¡¼¤ò»²¾È¤¹¤ë¤³¤È¤¬Æñ¤·¤¯¤Ê¤ë¤¿¤á¤Ç¤¹¡£
¤½¤Î¤¿¤á¡¢¥«¥ì¥ó¥·¡¼¤òÍøÍѤ·¤¿¤¤¥¯¥é¥¹¤¬¤É¤Î°Ì¤¢¤ë¤Î¤«¡¢¤½¤Î¾ì¹ç¡¢¤½¤Î¥¯¥é¥¹¤Ë¥«¥ì¥ó¥·¡¼¤Î¾ðÊ󤬤¢¤Ã¤¿¤éÊØÍø¤«¡¢¤È¤¤¤¦´ÑÅÀ¤ÇÀ߷פò¤·¤Æ¤¤¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¥«¥ì¥ó¥·¡¼¡¢¤ª¤è¤Ó¡¢¥«¥ì¥ó¥·¡¼¤Ë´ØÏ¢¤¹¤ë¾ðÊó¤ò¤Þ¤È¤á¤Þ¤¹¡£
¡¡¡¦¥«¥ì¥ó¥·¡¼¡¡¡¡¡¡¡¡¡¡¡¡¥²¡¼¥àÆâ¤Î»þ´Ö¤Î·Ð²á¤Ë¹ç¤ï¤»¤Æ²Ã»»¤µ¤ì¡¢¥³¥¹¥È¤ò»Ùʧ¤¦ºÝ¤Ë½¼Åö¤µ¤ì¤ëÃÍ ¡¡¡¦¥¿¥¤¥Þ¡¼¡¡¡¡¡¡¡¡¡¡¡¡¡¡¥²¡¼¥àÆâ¤Î»þ´Ö¤Î·Ð²á¤ò·×¬¤¹¤ëÃÍ ¡¡¡¦¥¿¥¤¥Þ¡¼ÌÜɸÃÍ¡¡¡¡¡¡¡¡¥²¡¼¥àÆâ¤Î»þ´Ö¤Î·Ð²á¤ò¥¿¥¤¥Þ¡¼¤Ç·×¬¤·¤¿ºÝ¡¢¥¿¥¤¥Þ¡¼¤ÎÃͤ¬ÌÜɸ¤È¤¹¤ëÃÍ¡£¤³¤ÎÃͤòĶ¤¨¤ë¤³¤È¤Ç¡¢¥«¥ì¥ó¥·¡¼¤Ë²Ã»»½èÍý¤¬Æþ¤ë¡¡¡¡ ¡¡¡¦¥«¥ì¥ó¥·¡¼¤Î²Ã»»ÃÍ¡¡¡¡¥¿¥¤¥Þ¡¼¤ÎÃͤ¬¥¿¥¤¥Þ¡¼ÌÜɸÃͤòĶ¤¨¤ë¤¿¤Ó¤Ë¡¢¥«¥ì¥ó¥·¡¼¤Ë²Ã»»¤µ¤ì¤ëÃÍ ¡¡¡¦¥«¥ì¥ó¥·¡¼ºÇÂçÃÍ¡¡¡¡¡¡¥«¥ì¥ó¥·¡¼¤ÎºÇÂçÃÍ¡£¤³¤ÎÃͰʾå¤Ë¤Ï²Ã»»¤µ¤ì¤Ê¤¤¤è¤¦¤ËÀ©¸æ¤¹¤ë
¡¡Ãͤò¤É¤Î¤è¤¦¤ËÍøÍѤ¹¤ë¤«¤ÏÀßÄꤷ¤Þ¤·¤¿¡£
¤¢¤È¤Ï¡¢¤³¤ì¤é¤Î¾ðÊó¤ò»È¤Ã¤¿¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤Æ¡¢¥«¥ì¥ó¥·¡¼¤ÎÃͤ¬¥²¡¼¥àÆâ¤Î»þ´Ö·Ð²á¤Ë¹ç¤ï¤»¤Æ²Ã»»¤·¤Æ¤¤¤¯½èÍý¤ò¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤³¤ì¤é¤Î¾ðÊó¤Ï¡¢¤¹¤Ù¤ÆƱ¤¸¥¯¥é¥¹¤Ë´ÉÍý¤µ¤»¤ë¡¢¤È¤¤¤¦¤â¤Î¤Ç¤â¤¢¤ê¤Þ¤»¤ó¡£
¤³¤ÎÃͤϤɤΥ¯¥é¥¹¤Ë¤¢¤ì¤Ð¤¤¤¤¤«¡¢¤È¤¤¤¦É÷¤Ë¹Í¤¨¤Ê¤¬¤é½èÍý¤È¤Ä¤Ê¤²¤Æ¤¤¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
Î㤨¤Ð¡¢¥¿¥¤¥Þ¡¼¤ÎÃͤϡ¢¤¹¤Ù¤Æ¤Î¥¯¥é¥¹¤ÇÍøÍѤ¹¤ë¾ðÊó¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢¼ÂºÝ¤Ë¥²¡¼¥à¤ò´ÉÍý¤·¤Æ¤¤¤ë GameManager ¤ËÍÑ°Õ¤¹¤ë¡¢¤È¤¤¤Ã¤¿·Á¤Ç¤¹¡£
¡¡¼¡¤Ï¡¢Àè¤Û¤É¤Î¥«¥ì¥ó¥·¡¼¤Î¾ðÊó¤òÊÑ¿ô¤È¤·¤ÆºîÀ®¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¤É¤Î¤è¤¦¤Ê·¿¤Ç¡¢¤É¤Î¤è¤¦¤ÊÊÑ¿ô̾¤Ë¤¹¤ë¤Ù¤¤«¤ò¹Í¤¨¤Æ¤¤¤¤Þ¤¹¡£
»²¹Í¤Þ¤Ç¤Ë¤´¾Ò²ð¤·¤Þ¤¹¤¬¡¢¤´¼«Ê¬¤Î¤ï¤«¤ê¤ä¤¹¤¤Ì¾¾Î¤òºÎÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
[Header("¥«¥ì¥ó¥·¡¼(¥³¥¹¥ÈÍѤÎÄ̲ß)")] public int currency; [Header("¥«¥ì¥ó¥·¡¼¤ÎºÇÂçÃÍ")] public int maxCurrency; [Header("¥¿¥¤¥Þ¡¼ÌÜɸÃÍ(¥«¥ì¥ó¥·¡¼²Ã»»¤Þ¤Ç¤ÎÂÔµ¡»þ´Ö)")] public int currencyIntervalTime; [Header("¥«¥ì¥ó¥·¡¼¤Î²Ã»»ÃÍ")] public int addCurrencyPoint;
int timer;
¡¡Â³¤¤¤Æ¤Ï¡¢¤³¤ì¤é¤ÎÃͤò»È¤Ã¤¿¥í¥¸¥Ã¥¯¤ÎºîÀ®¤Ç¤¹¡£
¤É¤Î¤è¤¦¤Ê¥í¥¸¥Ã¥¯¤Ë¤¹¤ì¤Ð¡¢¤³¤ì¤é¤Î¾ðÊó¤ò¸µ¤Ë¤·¤Æ°ìÄê»þ´Ö·Ð²á¸å¤Ë¥«¥ì¥ó¥·¡¼¤ÎÃͤò²Ã»»¤·¤Æ¤¤¤¯½èÍý¤¬¼ÂÁõ¤Ç¤¤ë¤«¤ò¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡¼ç¤Ê¼êË¡¤È¤·¤Æ¤Ï¡¢Update ¥á¥½¥Ã¥É¤ò³èÍѤ¹¤ëÊýË¡¤È¡¢¥³¥ë¡¼¥Á¥ó¥á¥½¥Ã¥ÉÆâ¤Ç while ʸ¤ò³èÍѤ¹¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
while ʸ¤Î¾ì¹ç¤Ï yield return null ¤Î½èÍý¤òÁȤ߹ç¤ï¤»¤ë¤³¤È¤Ë¤è¤ê¡¢µ¿»÷Ū¤Ê Update ¥á¥½¥Ã¥É¤Î¤è¤¦¤Ê¥Õ¥ì¡¼¥àñ°Ì¤Ç¤Î¥¿¥¤¥Þ¡¼¤Î·×¬¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
ÆÃ¤Ë while ʸ¤òÍøÍѤ¹¤ë¾ì¹ç¤Ë¤Ï¡¢Ìµ¸Â¥ë¡¼¥×¾õÂÖ¤ÎȯÀ¸¤Ë¤è¤Ã¤Æ¥²¡¼¥à¤¬¥Õ¥ê¡¼¥º¤·¤Ê¤¤¤è¤¦¤Ëµ¤¤òÉÕ¤±¤Æ¤¯¤À¤µ¤¤¡£
¡¡»æ¤Ê¤É¤Ë¥í¥¸¥Ã¥¯¤ò¥Õ¥í¡¼¥Á¥ã¡¼¥È¤Î¤è¤¦¤Ë¤·¤Æ½ñ¤¤¤Æ¤¤¤¯¤È½èÍý¤ò²Ä»ë²½¤·¤Æ³Îǧ¤Ç¤¤Þ¤¹¤Î¤Ç¡¢¥í¥¸¥Ã¥¯¤òºî¤ê¤ä¤¹¤¯¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢¤³¤Î¥í¥¸¥Ã¥¯¤òÁȤ߹þ¤ß¤¿¤¤¥¹¥¯¥ê¥×¥È¤Î¸õÊ䤬É⤫¤ó¤Ç¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¤½¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Ë¥Õ¥í¡¼¥Á¥ã¡¼¥È¤Î¥³¥á¥ó¥È¤ò½çÈ֤˽ñ¤¤¤Æ¤ª¤¯¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£
¼ÂÁõ¤·¤¿¤¤½èÍý¤òºÙ¤«¤¯¥³¥á¥ó¥È²½¤·¤Æ¤ª¤¯¤È¡¢¥×¥í¥°¥é¥à¤òºî¤Ã¤Æ¤¤¤¯ºÝ¤ËÌòΩ¤Á¤Þ¤¹¡£
¡¡¥«¥ì¥ó¥·¡¼¤ÎÃͤò°ìÄê»þ´Ö¤´¤È¤Ë²Ã»»¤¹¤ë½èÍý¤Î¥í¥¸¥Ã¥¯¤¬´°À®¤·¤¿¤é¡¢¼¡¤Ï¡¢¤½¤Î¾ðÊó¤ò¥²¡¼¥à²èÌ̤Ëɽ¼¨¤¹¤ë½èÍý¤ò¹Í¤¨¤Æ¤¯¤À¤µ¤¤¡£
ÆâÉôŪ¤Ë¥«¥ì¥ó¥·¡¼¤ÎÃͤ¬²Ã»»¤µ¤ì¤Æ¤¤¤Æ¤â¡¢¥²¡¼¥à²èÌ̾å¤Ë¸½ºß¤Î¥«¥ì¥ó¥·¡¼¤ÎÃͤ¬É½¼¨¡¦¹¹¿·¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¥æ¡¼¥¶¡¼¤Ï¥«¥ì¥ó¥·¡¼¤òǧ¼±¤Ç¤¤Þ¤»¤ó¡£
¤è¤Ã¤Æ UI ¤È¤·¤Æ¥²¡¼¥à²èÌ̤Ëɽ¼¨¤¹¤ë¤³¤È¤¬ÂçÀڤǤ¹¡£
¡¡É½¼¨¤¹¤ë°ÌÃ֤䡢ɽ¼¨¤ò¹¹¿·¤¹¤ë¥¿¥¤¥ß¥ó¥°¤Ê¤É¤â¹Íθ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢°ìÄê»þ´Ö¤´¤È¤Ë¥«¥ì¥ó¥·¡¼¤ÎÃͤ¬²Ã»»¤µ¤ì¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢
Update ¥á¥½¥Ã¥É¤Ç¾ï»þ¥«¥ì¥ó¥·¡¼¤Îɽ¼¨¤ò¹¹¿·¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£²Ã»»¤µ¤ì¤¿¤ê¡¢¥³¥¹¥È¤¬»Ùʧ¤ï¤ì¤¿¤ê¤·¤Æ¡¢¥«¥ì¥ó¥·¡¼¤ÎÃͤËÊѹ¹¤¬¤¢¤Ã¤¿¥¿¥¤¥ß¥ó¥°¤Ç
²èÌ̤Υ«¥ì¥ó¥·¡¼¤ÎÃͤ¬¹¹¿·¤µ¤ì¤ëÊý¤¬Å¬ÀڤʽèÍý¤Ç¤¢¤ë¤È¤¤¤¨¤Þ¤¹¡£¤½¤¦¤¤¤Ã¤¿´ÑÅÀ¤Ç½èÍý¤Î¹¹¿·¤Ë¤Ä¤¤¤Æ¤â¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡UI ¤Î´ÉÍý¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥«¥ì¥ó¥·¡¼¤Î²Ã»»½èÍý¤ò¹Ô¤Ã¤Æ¤¤¤ë¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¤â¤è¤¤¤Ç¤¹¤·¡¢¿·¤·¤¯ UI ´ÉÍýÍѤΥޥ͡¼¥¸¥ã¡¼¥¯¥é¥¹¤òºîÀ®¤·¤Æ¤â¤¤¤¤¤Ç¤¹¡£
º£¸å¡¢UI ¤Îɽ¼¨¤¬Áý¤¨¤ë¤³¤È¤ò¹Í¤¨¤¿¾ì¹ç¤Ë¤Ï¡¢UI ´ÉÍýÍѤΥޥ͡¼¥¸¥ã¡¼¥¯¥é¥¹¤òºîÀ®¤·¤Æ¤ª¤¤¤¿Êý¤¬´ÉÍý¤Ï¤·¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¤³¤³¤Þ¤Ç´°À®¤·¤¿¤é¡¢¤¢¤È¤Ï¼ÂºÝ¤Ë¥í¥¸¥Ã¥¯¤ò¥×¥í¥°¥é¥à¤È¤·¤ÆÁȤ߹þ¤ó¤Ç¤¤¤¯ºî¶È¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¥í¥¸¥Ã¥¯¤ò»È¤Ã¤¿½èÍý¤òºî¤ë¤¿¤á¤Ë¡¢É¬Íפˤʤë¾ðÊó¤òºîÀ®¤¹¤ë¤³¤È¤«¤é»Ï¤á¤Þ¤¹¡£
º£²ó¤Ç¤¢¤ì¤Ð¡¢¥«¥ì¥ó¥·¡¼¤Ë´ØÏ¢¤¹¤ëÃͤò¥¹¥¯¥ê¥×¥ÈÆâ¤Ë¿·¤·¤¯Äɲ乤ëÉôʬ¤Ç¤¹¡£
´û¸¤Î¥¹¥¯¥ê¥×¥È¤Ë½ñ¤¯¤Î¤«¡¢¿·¤·¤¯¥¯¥é¥¹¤òºî¤ë¤Î¤«¤Ï¤¹¤Ç¤Ë·è¤Þ¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¤Î¤Ç¡¢¤½¤Á¤é¤Ë¥«¥ì¥ó¥·¡¼´ØÏ¢¤ÎÊÑ¿ô¤òÄɲä·¤Þ¤¹¡£
¤³¤ÎÉôʬ¤ò´°À®¤µ¤»¤Æ¤«¤é¡¢ºÇ¸å¤Ë¡¢¤³¤ÎÃͤòÍøÍѤ·¤¿¥í¥¸¥Ã¥¯¤òºîÀ®¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡¤Ê¤¼¤Ê¤é¡¢É¬ÍפʾðÊ󤬤ʤ±¤ì¤Ð¥í¥¸¥Ã¥¯¤òÁȤळ¤È¤¬¤Ç¤¤Ê¤¤¤¿¤á¤Ç¤¹¡£
¡¡Â³¤¤¤Æ¡¢UI ´ØÏ¢¤Î½èÍý¤Ë°Ü¤ê¤Þ¤¹¡£¥«¥ì¥ó¥·¡¼¤ÎÃͤòɽ¼¨¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
¤Þ¤¿¡¢UI ´ÉÍýÍѤΥޥ͡¼¥¸¥ã¡¼¥¯¥é¥¹¤òºîÀ®¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ºîÀ®¤·¤¿ GameData ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create Empty ¤Ç¿·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
̾Á°¤ò GameData ¤ËÊѹ¹¤·¤Æ¡¢GameData ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¤³¤ì¤é¤ÎÀßÄê¤ÏÊѹ¹¤Ç¤¤Þ¤¹¤Î¤Ç¡¢¤Þ¤º¤Ï¾åµ¤Î²èÁü¤ò»²¹Í¤Ë¤·¤Æ¥«¥ì¥ó¥·¡¼¤Î´ØÏ¢¤Î½é´üÃͤòÀßÄꤷ¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡°Ê¾å¤Ç GameData ¤Ë´Ø¤¹¤ë½èÍý¤Ï´°À®¤Ç¤¹¡£
¡¡¥«¥ì¥ó¥·¡¼¤Î¸½ºßÃͤò¥²¡¼¥à²èÌ̤Ëɽ¼¨¤·¤¿¤¤¤Î¤Ç¡¢UI ¤È¤·¤Æ¥«¥ì¥ó¥·¡¼¤ÎÃͤòɽ¼¨¤¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤Ë¼«Í³¤ËºîÀ®¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£²¼µ¤Ï»²¹ÍÎã¤Ç¤¹¡£
¡¡¼«Ê¬¤¬Í·¤ÖΩ¤Á¾ì¤Ë¤Ê¤Ã¤Æ¡¢¤É¤Î°ÌÃ֤ˡ¢¤É¤Î°Ì¤ÎÂ礤µ¤Çɽ¼¨¤µ¤ì¤Æ¤¤¤ì¤Ð¤¤¤¤¤«¤ò¹Í¤¨¤ÆÇÛÃÖ¤·¤Æ¤ß¤Æ¤Þ¤·¤ç¤¦¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
Scene¥Ó¥å¡¼²èÁü
Game ¥Ó¥å¡¼²èÁü
¡¡´°À®¤·¤¿¤é¡¢¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë Text ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÀ©¸æ¤¹¤ë¤¿¤á¤Î½èÍý¤òºîÀ®¤·¤Þ¤¹¡£
º£²ó¤ÏÀè¤Î¤³¤È¤â¹Í¤¨¤Æ UI ´ÉÍýÍѤΥޥ͡¼¥¸¥ã¡¼¥¯¥é¥¹¤òºîÀ®¤·¤Æ¡¢¤³¤ÎÀ©¸æ½èÍý¤òµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡¡ºîÀ®¤·¤¿ UIManager ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create Empty ¤Ç¿·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
̾Á°¤ò UIManager ¤ËÊѹ¹¤·¤Æ¡¢UIManager ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢Text ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¥¢¥µ¥¤¥ó¾ðÊó¤¬Ä󼨤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢Àè¤Û¤ÉºîÀ®¤·¤¿¥«¥ì¥ó¥·¡¼¤ÎÃͤòɽ¼¨¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò
¥Ò¥¨¥é¥ë¥¡¼¤«¤é¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£¼«Æ°Åª¤Ë Text ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¾ðÊó¤¬ÊÑ¿ôÆâ¤ËÂåÆþ¤µ¤ì¤Þ¤¹¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡°Ê¾å¤Ç´°À®¤Ç¤¹¡£
¡¡¥í¥¸¥Ã¥¯¤òÁȤ߹þ¤ó¤Ç¤¤¤¯¤¿¤á¤ÎɬÍפʾðÊ󤬴°À®¤·¤Þ¤·¤¿¤Î¤Ç¡¢¤³¤Î¼ê½ç¤Ç¤Ï¡¢¤½¤ì¤é¤Î¾ðÊó¤ò³èÍѤ·¤Æ¥«¥ì¥ó¥·¡¼¤Î²Ã»»½èÍý¤ò¼ÂÁõ¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡ºÇ½é¤Ë¥í¥¸¥Ã¥¯¤Îή¤ì¤ò¥¹¥¯¥ê¥×¥ÈÆâ¤Ë¥³¥á¥ó¥È¤È¤·¤Æ½ñ¤¤¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£¤³¤ì¤Ï¡¢½èÍý¤Î¥¹¥¿¡¼¥ÈÃÏÅÀ¤«¤é½ñ¤»Ï¤á¤Æ¤¤¤¯¤È¤¤¤¤¤Ç¤¹¡£
¤½¤·¤Æ½èÍý¤Î¥´¡¼¥ëÃÏÅÀ¤Þ¤Ç¥³¥á¥ó¥È¤ò½ñ¤¤¤¿¤é¡¢º£Å٤ϥ´¡¼¥ëÃÏÅÀ¤«¤é¥³¥á¥ó¥È¤ò»²¹Í¤Ë¤·¤Ê¤¬¤é¥×¥í¥°¥é¥à¤ò½ñ¤¹þ¤ó¤Ç¤¤¤¤Þ¤¹¡£
¡¡¥¹¥¿¡¼¥ÈÃÏÅÀ¤Þ¤Ç½èÍý¤ò½ñ¤¤¤Æ¤¤¤¯¤³¤È¤¬¤Ç¤¤ì¤Ð¡¢½èÍý¤Î¼ÂÁõ¤È¥³¥á¥ó¥È¤Î¼ÂÁõ¤ÎξÊý¤¬´°À®½ÐÍè¤Þ¤¹¡£
GameManager.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤ò¤·¤Þ¤¹¡£
¡¡GameManager ¥¹¥¯¥ê¥×¥È¤Ë¿·¤·¤¯ UIManager ¥¹¥¯¥ê¥×¥È¤ò¥¢¥µ¥¤¥ó¤¹¤ë¤¿¤á¤ÎÊÑ¿ô¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£
˺¤ì¤º¤Ë¥¢¥µ¥¤¥ó¤·¤Æ¤«¤é¡¢¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¥²¡¼¥à¤ò¼Â¹Ô¸å¡¢¥²¡¼¥à¤Î¥¹¥Æ¡¼¥È¤¬ Play ¤ËÀÚ¤êÂؤï¤Ã¤Æ¤«¤é¡¢¥²¡¼¥àÆâ¤Î»þ´Ö¤Î·Ð²á¤Ë¹ç¤ï¤»¤Æ¥«¥ì¥ó¥·¡¼¤¬²Ã»»¤µ¤ì¤Æ¤¤¤±¤ÐÀ®¸ù¤Ç¤¹¡£
¤Þ¤¿¡¢UI ¤Îɽ¼¨¤¬¹¹¿·¤µ¤ì¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡¡¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦ºÝ¤Ë¤Ï¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ç¾ðÊó¤ò³Îǧ¤·¤Ê¤¬¤é¥Á¥§¥Ã¥¯¤·¤Þ¤·¤ç¤¦¡£
¥¹¥Æ¡¼¥È¤â¥«¥ì¥ó¥·¡¼¤â³Îǧ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¤Þ¤¿¥²¡¼¥à¤Î¥¹¥Æ¡¼¥È¤¬ Play ¤Ç¤¢¤ë¤È¤¤À¤±¥«¥ì¥ó¥·¡¼ÍѤλþ´Ö¤Î·×¬¤¬¹Ô¤ï¤ì¤ë¤¿¤á¡¢
¥¥ã¥éÇÛÃÖÍѤΥݥåץ¢¥Ã¥×¤ò³«¤¤¤¿»þ¤Ë¤Ï¤³¤Î·×¬¤¬½ªÎ»¤·¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ò³«¤¤¤Æ¤¤¤ë´Ö¤Ï¥«¥ì¥ó¥·¡¼¤ÎÃͤ¬²Ã»»¤µ¤ì¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¥«¥ì¥ó¥·¡¼¤¬Áý¤¨¤ë¤Þ¤Ç¤Î»þ´Ö¤ä£±²óÊÕ¤ê¤Î²Ã»»ÃÍ¤Ï GameData ¥¹¥¯¥ê¥×¥È¤«¤éÀßÄ꤬¤Ç¤¤Þ¤¹¤Î¤Ç¡¢Å¬µ¹Ä´À°¤ò¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¸½ºß¤Ï°ìÅ٥ݥåץ¢¥Ã¥×¤ò³«¤¤¤Æ¤·¤Þ¤¦¤È¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤òÊĤ¸¤Æ¤â¥«¥ì¥ó¥·¡¼¤Î·×¬¤Ï³«»Ï¤µ¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¼¡¤Î¼ê½ç¤Ç½¤Àµ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£²£¸¡¡¡Ý¥«¥ì¥ó¥·¡¼¤ò³èÍѤ·¤¿¥³¥¹¥È»Ùʧ¤¤µ¡Ç½¤Î¼ÂÁõ¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯