ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2024ǯ06·î09Æü(Æü) 06:18:54ÍúÎò
¡ã¼ÂÁõÆ°²è¡ä
![](https://image01.seesaawiki.jp/i/o/i-school-memo/EcMIeEi5Vy.gif)
¡¡°Ê²¼¤ÎÆâÍƤǼÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥·¥ó¥°¥ë¥È¥ó¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Ë¤è¤ë¥¯¥é¥¹¤ÎºîÀ® ¡¡¡¦¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î³èÍÑÊýË¡¡ ¡¡¡¦for ʸ¤È Grid Layout Group ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÍøÍѤ·¤¿¥¤¥ó¥¹¥¿¥ó¥·¥¨¥¤¥È½èÍý¤Î¼ÂÁõÎã
£³£·¡¥DataBaseManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¡¢CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤǤ¤ë¾õÂ֤ˤ¹¤ë ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡¤³¤Î¼ê½ç¤Ç¤Ï¡¢ÇÛÃÖ¤¹¤ë¥¥ã¥é¤òÁªÂò¤¹¤ë¥Ü¥¿¥ó¤Î¼«Æ°À¸À®¤Ë²Ã¤¨¤Æ¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤ·¤Æ£±¤Ä¤Î¥×¥ì¥Õ¥¡¥Ö¤«¤é°Û¤Ê¤ë¥¥ã¥é¤ÎÇÛÃÖÍѤΥܥ¿¥ó¤òºî¤ê½Ð¤¹ÊýË¡¤ò³Ø½¬¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¨¥Í¥ß¡¼¤Î¥Ç¡¼¥¿¤òÅÐÏ¿¤·¤Þ¤·¤¿¡£
¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¥¹¥¯¥ê¥×¥ÈÆâ¤ËƱ̾¤Î·¿Ì¾¤ÇÊÑ¿ô¤òºîÀ®¤¹¤ë¤³¤È¤ÇÍøÍѤ¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡ã¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤǤ¤ë¾õÂ֤ˤ¹¤ë¡ä
public CharaDataSO charaDataSO;
¡¡¾åµ¤Î¤è¤¦¤ËÊÑ¿ô¤È¤·¤ÆÀë¸À¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢ÊÑ¿ô¤òÍøÍѤ·¤Æ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊó¤ò¥²¡¼¥àÆâ¤ËÍøÍѤ¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡Àë¸À¤ÎÊýË¡¤Ï¾¤ÎÊÑ¿ô¤ÈÊѤï¤ê¤Þ¤»¤ó¡£¤Þ¤¿¡¢public ½¤¾þ»Ò¤Ë¤·¤ÆÀë¸À¤·¤Æ¤ª¤¯¤³¤È¤Ë¤è¤ê¡¢
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤è¤êÅÐÏ¿¤¬½ÐÍè¤ë¾¡¢³°Éô¤Î¥¹¥¯¥ê¥×¥È¤«¤é¤â»²¾È¤·¤ÆÍøÍѤ¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤³¤ì¤â¾¤ÎÊÑ¿ô¤ÈƱ¤¸¤Ç¤¹¡£
¡¡¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ïº£¸å¤âÁý¤¨¤Æ¤¤¤¯²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢ÆÃÄê¤Î¥¯¥é¥¹¤ËÀ찤ǴÉÍý¤ò¤µ¤»¤ë¤³¤È¤Ë¤è¤ê¡¢
¤¹¤Ù¤Æ¤Î½èÍý¤ò¤½¤Î¥¯¥é¥¹·Ðͳ¤Ç»²¾È¤¹¤ëÀ߷פˤ·¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¤Î¥¯¥é¥¹¤È¤·¤Æ DataBaseManager ¥¯¥é¥¹¤ò¥·¥ó¥°¥ë¥È¥ó¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤È¤·¤ÆºîÀ®¤·¤Æ¤ª¤¤Þ¤¹¡£
DataBaseManager.cs
¡¡¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£
¡¡¥·¥ó¥°¥ë¥È¥ó¤È¤Ï¡¢¿ô¿¤¯¤¢¤ë¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Î£±¤Ä¤Ç¤¹¡£
¤½¤Î¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤¬É¬¤º£±¤Ä¤Ç¤¢¤ë¤³¤È¤òÊݾڤ¹¤ë¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Î¤³¤È¤ò¸À¤¤¤Þ¤¹¡£
¡¡DataBaseManager ¥¯¥é¥¹¤Ç¤Ï¡¢¤³¤Î¥·¥ó¥°¥ë¥È¥ó¤òºÎÍѤ·¤Æ¤¤¤Þ¤¹¡£
¤Ä¤Þ¤ê¡¢¥²¡¼¥àÃæ¤òÄ̤¸¤Æ¡¢¤³¤Î DataBaseManager ¥¯¥é¥¹¤¬£±¤Ä¤·¤«Â¸ºß¤Ç¤¤Ê¤¤¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¼ÂÁõÎã¤ÏÊ£¿ô¤¢¤ê¤Þ¤¹¤¬¡¢°ìÈÖÆɤߤ䤹¤¤Êý¼°¤Çµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡ã¥·¥ó¥°¥ë¥È¥ó¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Î¥¯¥é¥¹¤ÎºîÀ®ÊýË¡¡ä
public static DataBaseManager instance;¡¡¡¡// ¥¯¥é¥¹Ì¾¤ÈƱ̾¤Î·¿¤ò static ¤ÇÀë¸À¤¹¤ë private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
¡¡¥Ý¥¤¥ó¥È¤Ï¡¢¼«Ê¬¼«¿È¤Î DataBaseManager ·¿¤ò static ½¤¾þ»ÒÉÕ¤¤Î instance ÊÑ¿ô¤È¤·¤ÆÀë¸À¤·¤Æ¤¤¤ë¤³¤È¤Ç¤¹¡£
¤³¤Î instance ÊÑ¿ô¤¬ DataBaseManager ¥¯¥é¥¹¼«¿È¤¬ÂåÆþ¤µ¤ì¤¿¾ðÊó¤È¤·¤ÆÍøÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Awake ¥á¥½¥Ã¥É¤òÍøÍѤ·¤Æ¡¢instance ÊÑ¿ô¤¬ null (¶õ¤Ã¤Ý) ¤Ç¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢DataBaseManager ¥¯¥é¥¹(this)¤òÂåÆþ¤·¤Þ¤¹¡£
¼¡¤Î DontDestroyOnLoad ¥á¥½¥Ã¥É¤Ï Unity ¤¬ÍÑ°Õ¤·¤Æ¤¤¤ë¥á¥½¥Ã¥É¤Ç¡¢°ú¿ô¤Ë»ØÄꤵ¤ì¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¥·¡¼¥óÁ«°Ü¤ò¤·¤Æ¤âÇ˲õ¤µ¤ì¤Æ¤Ê¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î DontDestroyOnLoad ¥á¥½¥Ã¥É¤Ï¥·¥ó¥°¥ë¥È¥ó¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Ë¤¹¤ëºÝ¤Ë°ì½ï¤ËÍѤ¤¤é¤ì¤ë¤³¤È¤¬Â¿¤¤¤Ç¤¹(¤³¤Î DontDestroyOnLoad ¥á¥½¥Ã¥Éµ¡Ç½¼«ÂΤϥ·¥ó¥°¥ë¥È¥ó¤Ø¤Î´ØÏ¢¤Ï¤¢¤ê¤Þ¤»¤ó)¡£
¡¡¤½¤·¤Æ instance ÊÑ¿ô¤¬ null ¤Ç¤Ï¤Ê¤¤¾ì¹ç¡¢¤Ä¤Þ¤ê¡¢£²¤ÄÌܰʹߤÎÊ£¿ô¤Î DataBaseManager ¥¯¥é¥¹¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Î DataBaseManager ¥¯¥é¥¹¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò Destroy ¤·¤Þ¤¹¡£
¤³¤Î¼ê½ç¤Ë¤è¤ê¡¢DataBaseManager ¥¯¥é¥¹¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¾ï¤Ë¥Ò¥¨¥é¥ë¥¡¼¾å¤Ë£±¤Ä¤·¤«Â¸ºß¤·¤Ê¤¤¾õÂÖ¤òºî¤ê½Ð¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î¥·¥ó¥°¥ë¥È¥ó¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥¿¥ó¥¹¤¬£±¤Ä¤«À¸À®¤µ¤ì¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì¤Þ¤¹¤Î¤Ç¡¢
µÕÀâŪ¤Ë¹Í¤¨¤ë¤È¡¢¤³¤Î DataBaseManager ¥¯¥é¥¹¤Ø¤Î»²¾È¤Ï¡¢¤¤¤º¤ì¤Î¥¯¥é¥¹¤«¤é¤Ç¤¢¤Ã¤Æ¤âÊÑ¿ô¤ò²ð¤µ¤º¤Ë»²¾È¤ò¹Ô¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Î㤨¤Ð¡¢NonPlayerCharacter ¤È¤¤¤¦¥¯¥é¥¹¤¬¤¢¤ê¡¢¤½¤Î NonPlayerCharacter ¥¯¥é¥¹¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬£µ¤Ä¤¢¤Ã¤¿¾ì¹ç¡¢
¡Ö¤É¤Î¡×NonPlayerCharacter ¥¯¥é¥¹¤Ç¤¢¤ë¤«¤ò³ÎÄê¤Ç¤¤Ê¤¤¤È¡¢ÂоݤȤʤë NonPlayerCharacter ¥¯¥é¥¹¤Ø¤Ï»²¾È¤Ç¤¤Þ¤»¤ó¡£
¤½¤Î¤¿¤á¡¢NonPlayerCharacter ·¿¤ÎÊÑ¿ô¤òÍÑ°Õ¤·¤Æ¡¢¤½¤ÎÊÑ¿ô¤Ø»²¾È¤·¤¿¤¤ NonPlayerCharacter ¥¯¥é¥¹¤òÂåÆþ¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢
¤Ï¤¸¤á¤Æ NonPlayerCharacter ¥¯¥é¥¹¤Î¾ðÊó¤ò°·¤¦¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤¬¾ðÊó¤ò°·¤¦ºÝ¤Î´ðËÜŪ¤Ê½èÍý¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¤Ç¤¹¤¬¥·¥ó¥°¥ë¥È¥ó¤Ç¤¢¤ë DataBaseManager ¥¯¥é¥¹¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ï¾ï¤Ë£±¤Ä¤·¤«¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢
¡Ö¤É¤Î¡×¤È¤¤¤¦»ØÄê¤ÎÉôʬ¤¬ÉÔÍפˤʤê¤Þ¤¹¡£¤è¤Ã¤Æ¥¯¥é¥¹¤ÎÆÃÄ꤬¤Ç¤¤Æ¤¤¤ë¤¿¤á¡¢ÊÑ¿ô¤Ø¤ÎÂåÆþ¤¬ÉÔÍפˤʤê¤Þ¤¹¡£
DataBaseManager ¤È¤¤¤¦»ØÄê¤Ï¤¹¤Ê¤ï¤Á¡¢¼«Æ°Åª¤Ë¤¿¤À£±¤Ä¤Î DataBaseManager ¥¯¥é¥¹¤Î»²¾È¤¬¹Ô¤ï¤ì¤ë¤³¤È¤Ë¤Ê¤ë¤¿¤á¤Ç¤¹¡£
¡¡¤³¤Îµ¡Ç½¤òÍøÍѤ·¤Æ DataBaseManager ¥¯¥é¥¹¤òºîÀ®¤·¤Æ¤ª¤¯¤³¤È¤Ç¡¢¤É¤Î¥¯¥é¥¹¤«¤é¤Ç¤â»²¾È¤·¤ä¤¹¤¤À߷פˤ·¤Æ¤ª¤¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create Empty ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò DataBaseManager ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¡¢Àè¤Û¤ÉºîÀ®¤·¤¿ DataBaseManager ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/hma7IOtpeN.png)
¡¡¥¢¥µ¥¤¥ó¾ðÊó¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢Datas ¥Õ¥©¥ë¥ÀÆâ¤Ë¤¢¤ë CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È(¥¹¥¯¥ê¥×¥È¤Ç¤Ï¤Ê¤¤¥¢¥»¥Ã¥È¤ÎÊý)¤ò
¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ç¥²¡¼¥àÆâ¤Ç¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊó¤ò»²¾È¤·¤ÆÍøÍѤ¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/MejBviDTcD.png)
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
£³£¸¡¥PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤È CharaGenerator ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¡¢DataBaseManager ¥¹¥¯¥ê¥×¥È¤«¤é¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊó¤òÍøÍѤ·¤Æ SelectCharaDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀßÄꤹ¤ë ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡DataBaseManager ¥¹¥¯¥ê¥×¥È¤Ë¥¥ã¥éÍѤΥǡ¼¥¿¥Ù¡¼¥¹¤Ç¤¢¤ë CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òÅÐÏ¿¤·¤Þ¤·¤¿¡£
¤³¤ì¤Ç¤³¤Î¾ðÊó¤ò¥²¡¼¥àÆâ¤Ë±¿ÍѤǤ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¤Î¤Ç¡¢¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤¢¤ë¥¥ã¥é¤Î¾ðÊ󷲤òÍøÍѤ·¤Æ¡¢¥¥ã¥é¤Î¥Ü¥¿¥ó¤ÎÀßÄê¤ò¹Ô¤¦½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¡¡¤³¤ì¤é¤Î¼ÂÁõ¤¬´°À®¤·¤¿¤é¡¢Á°²ó¤Î¼ê½ç¤Ç SelectCharaDetail ¥¹¥¯¥ê¥×¥ÈÆâ¤Ë¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ¤¢¤ë½èÍý¤Î¥³¥á¥ó¥È¥¢¥¦¥È¤ò²ò½ü¤·¤Þ¤¹¡£
¡¡¥¥ã¥é¤Î¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤Ë¡¢¤½¤Î¥Ü¥¿¥ó¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë SelectCharaDetail ¥¯¥é¥¹Æâ¤Ç´ÉÍý¤·¤Æ¤¤¤ë CharaData ¥¯¥é¥¹¤Î¾ðÊó¤ò¥Ý¥Ã¥×¥¢¥Ã¥×Æâ¤ËÈ¿±Ç¤¹¤ëµ¡Ç½¤ò¼ÂÁõ¤·¤Þ¤¹¡£
À©¸æ¤¹¤ëµ¡Ç½¤¬Â¿¤¤¤¿¤á¡¢Â¿¤¯¤ÎÊÑ¿ô¤òÄɲ乤뤳¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ÊÑ¿ô̾¤È¥¢¥µ¥¤¥ó¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾¾Î¤òƱ¤¸¤Ë¤·¤Æ¤ª¤¯¤Èʬ¤«¤ê¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
PlacementCharaSelectPopUp.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£
¡¡Â³¤¤¤Æ¤Ï PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¤¤¿¤¤¤Î¤Ç¤¹¤¬¡¢
º£²ó¿·¤·¤¯ PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤Î SetUpPlacementCharaSelectPopUp ¥á¥½¥Ã¥É¤Î°ú¿ô¤òÄɲ䷤Ƥ¤¤ë¤¿¤á¡¢
¤½¤Î¸Æ¤Ó½Ð¤·Ì¿Î᤬½ñ¤¤¤Æ¤¢¤ë CharaGenerator ¥¹¥¯¥ê¥×¥È¦¤Ë¥¨¥é¡¼¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢Àè¤Ë CharaGenerator ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¡¢¥³¥ó¥Ñ¥¤¥ë¥¨¥é¡¼¤¬¤Ê¤¯¤Ê¤Ã¤Æ¤«¤é¡¢³ÆÊÑ¿ô¤Ë¥¢¥µ¥¤¥ó¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡¥¥ã¥é¤òÀ¸À®¤¹¤ë¤¿¤á¤Î¾ðÊó¤ò List ¤ËÆþ¤ì¤Æ´ÉÍý¤ò¹Ô¤¦¤è¤¦¤Ë¡¢ÊÑ¿ô¤ÎÄɲäò¹Ô¤¤¤Þ¤¹¡£
¤³¤Á¤é¤Î List ¤Ë¤Ï¡¢DataBaseManager ¥¯¥é¥¹¤Ë¤¢¤ë CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ò»²¾È¤·¤Æ¡¢¼ÂºÝ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë CharaData ¤ò¼è¤ê¹þ¤ß¡¢ÍøÍѤǤ¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤Î½èÍý¤â¥á¥½¥Ã¥É¤È¤·¤Æ½àÈ÷¤·¤Æ¤ª¤¯¤è¤¦¤Ë¤·¤Þ¤¹¡£½èÍýñ°Ì¤Ç¤Þ¤È¤á¤Æ¤¤¤¯¤³¤È¤ò³Ð¤¨¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£
¡¡TODO ¤Î½èÍý¤Î¼ÂÁõ¤ò¹Ô¤¤¤Ê¤¬¤é¡¢CharaData ¤òÈ¿±Ç¤·¤ÆÇÛÃÖÍѤΥ¥ã¥é¤Î¥Ç¡¼¥¿¤ò¥Ý¥Ã¥×¥¢¥Ã¥×¤Ø¤È°ú¿ô¤òÍøÍѤ·¤Æ¾ðÊó¤òÅϤ¹¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤Î½èÍý¤Ë¤è¤ê¡¢¥Ý¥Ã¥×¥¢¥Ã¥×Æâ¤Ç¥Ü¥¿¥óÍѤΥǡ¼¥¿¤Î¾ðÊó¤¬ÆϤ¯¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢³Æ¥Ü¥¿¥ó¤Î¾ðÊó¤Ë CharaData ¤ò£±¤Ä¤º¤ÄÈ¿±Ç¤µ¤»¤Æ¥Ü¥¿¥ó¤òÀ¸À®¤¹¤ë¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡½èÍý¤ÎÁ´ÂΤÎή¤ì¤òÇÄ°®¤·¤Ê¤¬¤é¼ÂÁõ¤ò¹Ô¤Ã¤Æ¤¤¤¯¤è¤¦¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
PlacementSelectCharaPopUp ¥¹¥¯¥ê¥×¥È¤È¤Î·Ò¤¬¤ê¤ò¤·¤Ã¤«¤ê¤ÈÍý²ò¤·¤Æ¤ª¤¯¤³¤È¤¬É¬Íפˤʤê¤Þ¤¹¡£
¡¡
CharaGenerator.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é˺¤ì¤º¤Ë¥»¡¼¥Ö¤ò¤·¤Þ¤¹¡£
¡¡¿·¤·¤¯Äɲä·¤¿ CharaDatasList ÊÑ¿ô¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Þ¤¹¡£
Size ¤Ï 0 ¤Î¤Þ¤Þ¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó¡£¥²¡¼¥à¤ò¼Â¹Ô¤·¤¿ºÝ¤Ë CreateHaveCharaDatasList() ¥á¥½¥Ã¥É¤¬¼Â¹Ô¤µ¤ì¤Æ
¤³¤Á¤é¤Ë CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î CharaData ¤¬½çÈÖ¤ËÅÐÏ¿¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/FbQ_wS0THX.png)
¡¡¿·¤·¤¯Àë¸À¤·¤¿ÊÑ¿ô¤¬¤¿¤¯¤µ¤ó¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢´Ö°ã¤¨¤Ê¤¤¤è¤¦¤Ë¥¢¥µ¥¤¥ó¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾¾Î¤ÈÊÑ¿ô̾¤òƱ°ì¤Ë¤·¤Æ¤ª¤¯¤³¤È¤Ë¤è¤ê¡¢¥¢¥µ¥¤¥óÀè¤òʬ¤«¤ê¤ä¤¹¤¯¤Ç¤¡¢¤«¤Ä¡¢¥¢¥µ¥¤¥ó´Ö°ã¤¨¤òËɻߤ¹¤ë¤³¤È¤ËÌòΩ¤Á¤Þ¤¹¡£
¤½¤¦¤¤¤Ã¤¿Éôʬ¤â¹Í¤¨¤Ê¤¬¤é̾¾Î¤Ë¤Ä¤¤¤Æ¤Ï½àÈ÷¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/NqYPgjGJrf.png)
¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤¿ºÝ¤Ë¡¢¤É¤Î½èÍý¤¬¡¢¤É¤Î¤è¤¦¤ËÆ°¤¤¤Æ¤¤¤ë¤³¤È¤Ç¡¢¥Ý¥Ã¥×¥¢¥Ã¥×Æâ¤Ë
ÇÛÃÖÍѤΥ¥ã¥é¤Î¥Ü¥¿¥ó¤¬Ê¤ó¤ÇÀ¸À®¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤«¤òʬ¤«¤Ã¤¿¾å¤Ç³Îǧ¤·¤Æ¤¤¤¯¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£
¡¡CharaGenerator ¥¯¥é¥¹¤Î List ¤Ë¤Ï¡¢DataBaseManager ¥¯¥é¥¹¤Î CharaDataSO ¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤ò»²¾È¤·¤Æ¡¢
ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë CharaData ¤Î List ¤¬ºîÀ®¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¤³¤Î¾ðÊó¤ò¥Ý¥Ã¥×¥¢¥Ã¥×¤ËÅϤ¹¤³¤È¤Ë¤è¤ê¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤¬É½¼¨¤µ¤ì¤¿ºÝ¤Ë¡¢Æ±¤¸¥¥ã¥é¤Î¥Ü¥¿¥ó¤Ç¤¢¤ê¤Ê¤¬¤é¤â
°Û¤Ê¤ë²èÁü¤ä¾ðÊó¤ò»ý¤Ä¥Ü¥¿¥ó¤¬ List ¤Î¿ôʬ¤À¤±À¸À®¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬Ê¬¤«¤ê¤Þ¤¹¡£
¡¡PlacementSelectCharaPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤Î Content ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ
SelectCharaDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬Ê£¿ôÀ¸À®¤µ¤ì¤Æ¥Ü¥¿¥ó¤È¤·¤Æɽ¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤â¥Ò¥¨¥é¥ë¥¡¼¤«¤é³Îǧ¤ò¤·¤Æ¤ª¤¯¤³¤È¤Ç
¥¹¥¯¥ê¥×¥È¤Î½èÍý¤òÍý²ò¤¹¤ë½õ¤±¤Ë¤Ê¤ê¤Þ¤¹¡£
CharaGenerator ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/VXy9XkDoMC.png)
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£²£²¡¡¡Ý¥Ý¥Ã¥×¥¢¥Ã¥×Æâ¤ÇÁªÂò¤·¤Æ¤¤¤ë¥¥ã¥é¤ÎÀ¸À®½èÍý¤Î¼ÂÁõ¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯