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

¡¡Á°²ó¤Î¼ê½ç¤«¤é¤Î³¤­¤Ç¤¹¡£

¡¡GameData ¥¯¥é¥¹¤ò¥Ô¥å¥¢¥¯¥é¥¹¤ËÊѹ¹¤·¡¢¥¯¥é¥¹Á´ÂΤò¥»¡¼¥Ö¡¦¥í¡¼¥É¤Ç¤­¤ë¾õÂ֤ˤ·¤Þ¤¹¡£



Àß·×


¡¡GameData ¥¯¥é¥¹¤ò¥Ô¥å¥¢¥¯¥é¥¹¤ËÊѹ¹¤·¡¢¥¯¥é¥¹Á´ÂΤò¥»¡¼¥Ö¤Ç¤­¤ë¾õÂ֤ˤ·¤Þ¤¹¡£
¤¿¤À¤·¡¢GameData ¤Ï¥·¥ó¥°¥ë¥È¥ó¥¯¥é¥¹¤Ç¤¢¤ê¡¢¤½¤Î¤Þ¤Þ¤Ç¤¹¤È GameData ¤Ø¤Î»²¾È¤¬¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤ÉÔÊؤǤ¹¡£
¤½¤³¤Ç¿·¤·¤¯ GameDataManager ¥¯¥é¥¹¤ò¥·¥ó¥°¥ë¥È¥ó¥¯¥é¥¹¤È¤·¤ÆºîÀ®¤·¡¢¤½¤ÎÃæ¤Ç GameData ¥¯¥é¥¹¤ò´ÉÍý¤¹¤ë¤è¤¦¤ËÀ߷פòÊѹ¹¤·¤Þ¤¹¡£

¡¡¤³¤Î¾õÂ֤ˤ¹¤ë¤³¤È¤Ç¡¢GameData ¤Ë¤Ä¤¤¤Æ¤Ï¡¢GameDataManager ¤òÄ̤¸¤Æ¥¢¥¯¥»¥¹¤¹¤ë¾õÂÖ¤òºî¤ê¤À¤·¡¢
¤¤¤Þ¤Þ¤Ç¤ÈƱ¤¸¤è¤¦¤Ë¥·¥ó¥°¥ë¥È¥ó¤Î¤è¤¦¤Ë¤É¤³¤Î¥¯¥é¥¹¤«¤é¤Ç¤â»²¾È¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£


GameData ¥¯¥é¥¹¤Î½¤Àµ




¡¡¥²¡¼¥àÆâ¤Î¥Ç¡¼¥¿¤òÊÝ»ý¤¹¤ë¥¯¥é¥¹¤Ç¤¹¡£
¥×¥ì¥¤¥ä¡¼¤Î¾ðÊó¤äŨ¤Î¾ðÊó¡¢¥¹¥Æ¡¼¥¸¤Î¾ðÊó¤Ê¤É¤ò´ÉÍý¤¹¤ë¤¿¤á¤Î¥¯¥é¥¹¤òºîÀ®¤·¡¢°ì¸µ´ÉÍý¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡
¡¡¤³¤Î¥¯¥é¥¹¤Ï¿¤¯¤Î¥¯¥é¥¹¤«¤é»²¾È¤µ¤ì¤ë¤³¤È¤¬Â¿¤¯¤Ê¤ëÁ°Äó¤Ç¤¹¤Î¤Ç¡¢¥·¥ó¥°¥ë¥È¥ó¡¦¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤òÍøÍѤ·¤¿À߷פò¹Ô¤¤¤Þ¤¹¡£

¡¡Æä˥·¥ó¥°¥ë¥È¥ó¥¯¥é¥¹¤Î¾ì¹ç¡¢¥·¡¼¥óÁ«°Ü»þ¤Ë¤âÇË´þ¤µ¤ì¤Ê¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¤¹¤ë¤³¤È¤Ç
¤É¤Î¥¯¥é¥¹¤«¤é¤Ç¤âÊÑ¿ô¤ä¥á¥½¥Ã¥É¤Ë¥¢¥¯¥»¥¹¤Ç¤­¡¢¥·¡¼¥óÁ«°Ü¸å¤âÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¥¯¥é¥¹¤È¤·¤ÆÀ®Î©¤·¤Þ¤¹¡£


GameData.cs

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



GameDataManager ¥¯¥é¥¹¤ÎºîÀ®


¡¡°ÊÁ°¤Î¼ê½ç¤ÇºîÀ®¤·¤Æ¤¢¤ë AbstractSingleton ¥¯¥é¥¹¤ò·Ñ¾µ¤·¡¢¥·¥ó¥°¥ë¥È¥ó¥¯¥é¥¹¤È¤·¤ÆºîÀ®¤·¤Þ¤¹¡£

¡¡Awake ÆâÉô¤Î£²¤Ä¤Î¥Ü¥¿¥ó¤Î½èÍý¤Ï¥»¡¼¥Ö¡¦¥í¡¼¥É¤Î¥Ç¥Ð¥Ã¥°ÍѤǤ¹¡£


GameDataManager.cs

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



GameData ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾Á°¤ò GameDataManager ¤ËÊѹ¹¤·¡¢GameDataManager ¤ò¥¢¥¿¥Ã¥Á¤¹¤ë


¡¡GameData ¥¯¥é¥¹¤¬ MonoBehaviour ¥¯¥é¥¹¤Ç¤Ï¤Ê¤¯¤Ê¤Ã¤¿¤¿¤á¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Æ¤¤¤Þ¤¹¡£

¡¡GameData ¥¯¥é¥¹¤ò Remove ¤·¡¢Âå¤ï¤ê¤Ë GameDataManager ¤ò¥¢¥¿¥Ã¥Á¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢GameData ¥¯¥é¥¹¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Æ¡¢¥¯¥é¥¹Æâ¤Î¥á¥ó¥ÐÊÑ¿ô¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤â¤·¤â GameData ¤Î̾Á°¤·¤«½Ð¤Æ¤ª¤é¤º¡¢¥á¥ó¥ÐÊÑ¿ô¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
GameData ¥¯¥é¥¹¤Ë [System.Serializable] °À­¤¬ÉÕÍ¿¤µ¤ì¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£





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


¡¡¥»¡¼¥Ö¡¦¥í¡¼¥ÉÍѤΥǥХå°½èÍý¤òµ­½Ò¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢
¼ÂºÝ¤Ë GameData ¥¯¥é¥¹Æâ¤ËÃͤòÆþ¤ì¤¿¾õÂ֤ǥ»¡¼¥Ö¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¡¡¤½¤Î¸å¡¢¥²¡¼¥à¤òÄä»ß¤·¤ÆºÆµ¯Æ°¤·¡¢¥í¡¼¥É½èÍý¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£
GameData ¥¯¥é¥¹Æâ¤Ë°ÊÁ°¤Î¾õÂÖ¤¬Éü¸µ¤µ¤ì¤ì¤Ð½èÍý¤ÏÀµ¾ï¤ËÆ°ºî¤·¤Æ¤¤¤Þ¤¹¡£

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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