ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2024ǯ03·î09Æü(ÅÚ) 09:45:27ÍúÎò
¥¿¥¤¥ë¥Þ¥Ã¥×¤ò¥¿¥Ã¥×¤·¤¿ºÝ¤Ë¡¢¥¥ã¥é¤ÎÀ¸À®¤Ç¤Ï¤Ê¤¯¡¢Âå¤ï¤ê¤Ë¥Ý¥Ã¥×¥¢¥Ã¥×¤òɽ¼¨¤¹¤ëÀ©¸æ¤ËÊѹ¹¤ò¤·¤Þ¤¹¡£
¡¡¤³¤Î¼ê½ç¤Ç¤Ï¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®¤È¡¢¥Ý¥Ã¥×¥¢¥Ã¥×ɽ¼¨/Èóɽ¼¨¤ÎÀ©¸æ¤Î¼ÂÁõ¤ò¹Ô¤¦¤³¤È¤¬ÌÜŪ¤Ç¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê²¼¤ÎÆâÍƤǼÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¼ê½ç£±£¹¡¡¡¼PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀ¸À®½èÍý¤Î¼ÂÁõ¡¼
£³£³¡¥PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë £³£´¡¥CharaGenerator ¥¹¥¯¥ê¥×¥È¤È GameManager ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤¹¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦Button.onClick.AddListener¥á¥½¥Ã¥É ¡¦Selectable.interactable ÊÑ¿ô ¡¡¡¦DOTween¤ÎÊä´Öµ¡Ç½¤È¼ÂÁõÎ㣡¡¡¼OnComplete ¥á¥½¥Ã¥É¡¼ ¡¡¡¦Start ¥á¥½¥Ã¥É¤ò»È¤ï¤Ê¤¤½é´üÀßÄê¤Î¼êË¡ ¡¡¡¦Start ¥á¥½¥Ã¥É¤Ë°Í¸¤·¤Ê¤¤½èÍý¤ÎÁȤßΩ¤ÆÊý
¡¡¤Þ¤º¤Ï¥Ý¥Ã¥×¥¢¥Ã¥×¼«ÂΤÎÀ¸À®½èÍý¤«¤é¼ÂÁõ¤·¤Þ¤¹¡£
¤³¤Á¤é¤Î½èÍý¤¬Ìµ»ö¤Ë¼ÂÁõ¤Ç¤¤Æ¤«¤é¡¢¼¡¤Î¼ê½ç¤Ç¥Ý¥Ã¥×¥¢¥Ã¥×ÆâÉô¤ËÀ¸À®¤¹¤ë¥Ü¥¿¥ó¤ÎºîÀ®¤ÈÀ¸À®½èÍý¤¬¼ÂÁõ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡´·¤ì¤Æ¤¤¿¤é¤³¤ì¤é¤Î¼ê½ç¤ò¤Þ¤È¤á¤Æ¼ÂÁõ¤·¤Æ¤â¹½¤¤¤Þ¤»¤ó¤¬¡¢¤½¤Î¾ì¹ç¤Ë¤âÀ߷פò¤·¤Ã¤«¤ê¤È¹Í¤¨¤¿¾å¤Ç¼ÂÁõ¤·¤Æ¤¤¤¯¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£
¥¹¥¯¥ê¥×¥È¤òµ½Ò¤¹¤ë¤Î¤ÏºÇ¸å¤ÎÃʳ¬¤Ë¤Ê¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢Àß·×¾å¤ÇÌäÂ꤬¤Ê¤¯´°À®¤µ¤»¤ë¤³¤È¤¬¤ï¤«¤Ã¤Æ¤«¤éµ½Ò¤·¤Æ¤¤¤¯¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¥Ý¥Ã¥×¥¢¥Ã¥×¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ©¸æ¤¹¤ë¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤Þ¤º¤Ïɽ¼¨/Èóɽ¼¨¤ÎÀ©¸æ¤ò¼ÂÁõ¤·¡¢¼¡¤Î¼ê½ç¤Ç¡¢¥Ý¥Ã¥×¥¢¥Ã¥×Æâ¤Î³Æ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀ©¸æ¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¡¡É½¼¨/Èóɽ¼¨¤ËºÝ¤·¤Æ¤Ï¥Ü¥¿¥óÁàºî¤òÀ©¸æ¤¹¤ëɬÍפ¬¤¢¤ë¤¿¤á¡¢¤½¤Î¾ðÊó¤òÊÑ¿ô¤È¤·¤ÆÅÐÏ¿¤·¡¢À©¸æ¤Ç¤¤ë¾õÂ֤ˤ·¤Þ¤¹¡£
¤³¤Î¤È¤¡¢ÊÑ¿ô̾¤È¥¢¥µ¥¤¥ó¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾¾Î¤òƱ¤¸¤Ë¤·¤Æ¤ª¤¯¤Èʬ¤«¤ê¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¤Þ¤¿ TODO ¤ò³èÍѤ·¡¢¼¡²ó°Ê¹ß¤Ë¼ÂÁõ¤¹¤ë¤â¤Î¤ä¡¢À߷פ¹¤ëºÝ¤Ë¸¡Æ¤¤·¤Æ¤ª¤¯¤Ù¤Éôʬ¤òµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¼«Ê¬¤Ç¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ëºÝ¤Ë¤â¡¢¥í¥¸¥Ã¥¯¤ò¹Í¤¨¤ë¤È¤¤ËÌòΩ¤Á¤Þ¤¹¤Î¤Ç¡¢TODO ¤Î¥³¥á¥ó¥È¤ò³èÍѤ·¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£
¡¡¤Ê¤ª¡¢¼¡¤Î¼ê½ç¤Ç½èÍý¤òÄɲ䷤ʤ¤¤È¥¨¥é¡¼¤Ë¤Ê¤ë½èÍý¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ÎÉôʬ¤Ï¥³¥á¥ó¥È¥¢¥¦¥È¤ò¤·¤Æ¤¢¤ê¤Þ¤¹¡£
¸åÄø¡¢½èÍý¤òÄɲ䷤Ƥ«¤é¥³¥á¥ó¥È¥¢¥¦¥È¤ò²ò½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
PlacementCharaSelectPopUp.cs
¡¡¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£
¡¡Button ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤Ï OnClick ¤È¤¤¤¦¥¤¥Ù¥ó¥È¤òÅÐÏ¿¤¹¤ë¾ì½ê¤¬¤¢¤ê¤Þ¤¹¡£¤³¤³¤Ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¢¥µ¥¤¥ó¤ò¹Ô¤¦¤³¤È¤Ç¡¢
¥¢¥µ¥¤¥ó¤·¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥¹¥¯¥ê¥×¥È¤ËÀë¸À¤µ¤ì¤Æ¤¤¤ë public ½¤¾þ»Ò¤Î¥á¥½¥Ã¥É¤òÅÐÏ¿¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¤³¤Î½èÍý¤ò¥¹¥¯¥ê¥×¥È¤«¤éÀ©¸æ¤·¤ÆÄɲ䷤ƹԤ¦½èÍý¤¬¡¢onClick.AddListener¥á¥½¥Ã¥É¤Ç¤¹¡£°ú¿ô¤Î¤Ê¤¤¾ì¹ç¤È°ú¿ô¤Î¤¢¤ë¾ì¹ç¤Ç½ñ¼°¤¬ÊѲ½¤·¤Þ¤¹¡£
¡¡ÍøÅÀ¤Ï¡¢private ½¤¾þ»Ò¤Î¥á¥½¥Ã¥É¤Ç¤âÅÐÏ¿¤Ç¤¤ë¤³¤È¡¢¥¹¥¯¥ê¥×¥È¤«¤éÅÐÏ¿¤·¤Æ¤¤¤ë¤Î¤Ç¡¢UnityÆâ¤Î¾åµ¤Î²èÁü¤ÎButtonÉôʬ¤Ø¤ÎÅÐÏ¿ºî¶È¤ä¡¢³Îǧ¤ò¤¹¤ëɬÍפ¬¤Ê¤¯¤Ê¤ë¤³¤È¡¢¤Ê¤É¤¬¤¢¤ê¤Þ¤¹¡£
¡¡º£²ó¤Ï°ú¿ô¤Î¤Ê¤¤¥á¥½¥Ã¥É¤òÅÐÏ¿¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢°ú¿ô¤Ë¤Ï¤½¤Î¤Þ¤Þ¥á¥½¥Ã¥É̾¤òµ½Ò¤·¤Þ¤¹¡£¥á¥½¥Ã¥É¤Î()¤ò½ñ¤¯¤È¥¨¥é¡¼¤Ë¤Ê¤ë¤Î¤Ç¡¢¥á¥½¥Ã¥É̾¤Î¤ß¤òµ½Ò¤·¤Þ¤¹¡£
¡¡// ³Æ¥Ü¥¿¥ó¤Ë¥á¥½¥Ã¥É¤òÅÐÏ¿ btnChooseChara.onClick.AddListener(OnClickSubmitChooseChara); ¡¡btnClosePopUp.onClick.AddListener(OnClickClosePopUp);¡¡
¡¡¥³¥á¥ó¥È¤Ë¤â¤¢¤ë¤è¤¦¤Ë¡¢¤³¤Î½èÍý¤Ï¥Ü¥¿¥ó¤Ë¥á¥½¥Ã¥É¤òÅÐÏ¿¤¹¤ë¤À¤±¤Ç¤¹¤Î¤Ç¡¢¥á¥½¥Ã¥É¼«ÂΤμ¹ԽèÍý¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
ÂоݤȤʤë¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤¤Ë¼Â¹Ô¤µ¤ì¤ë¥á¥½¥Ã¥É¤òÅÐÏ¿¤·¤Æ¤¤¤ë½èÍý¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¸ø¼°¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¤ò»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¤Þ¤¿¥Í¥Ã¥È¤Ë¤Ïµ»ö¤¬Â¿¤¯¤¢¤ê¤Þ¤¹¤Î¤ÇÄ´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥¹¥¯¥ê¥×¥È¥ê¥Õ¥¡¥ì¥ó¥¹
Button.on.Click.AddListener
https://docs.unity3d.com/ja/2018.4/ScriptReference...
¡¡Button ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ï¡¢bool ·¿¤Î interactable ¥×¥í¥Ñ¥Æ¥£¤ò»ý¤Ã¤Æ(´ÉÍý¤·¤Æ)¤¤¤Þ¤¹¡£
¡¡¤³¤Á¤é¤Î¥¹¥¤¥Ã¥Á¤¬¥ª¥ó(true)¤Î¾ì¹ç¡¢¥Ü¥¿¥ó¤Ï͸ú¤Ê¾õÂ֤Ǥ¹¡£¤³¤ì¤ò³èÀ¾õÂ֤Ȥ¤¤¤¤Þ¤¹¡£
¡¡¤³¤Á¤é¤Î¥¹¥¤¥Ã¥Á¤¬¥ª¥Õ(false)¤Î¾ì¹ç¡¢¥Ü¥¿¥ó¤Ï̵¸ú¤Ê¾õÂ֤Ǥ¹¡£
¥Ü¥¿¥ó¤Î¿§¤¬ Disabled Color ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ë¿§¤ËÊѤï¤ê¤Þ¤¹(¥Ç¥Õ¥©¥ë¥È¤ÏȾƩÌÀ¤Ê³¥¿§)¡£¤³¤ì¤òÈó³èÀ¾õÂ֤Ȥ¤¤¤¤Þ¤¹¡£
¡¡¤³¤Î¾ðÊó¤Ï¥×¥í¥Ñ¥Æ¥£¤Ç¤¹¤Î¤Ç¡¢¥¹¥¯¥ê¥×¥È¤«¤éÁàºî¤ò¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
º£²ó¤Ï¤³¤Á¤é¤Îµ¡Ç½¤òÍøÍѤ·¤Æ¥Ü¥¿¥ó¤òÀ©¸æ¤·¤Ä¤Ä¡¢»ë³ÐŪ¤Ë¤â¤ï¤«¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¼ÂºÝ¤Ë¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ÇÁàºî¤ò¤·¤Æ¤ß¤Æ¡¢¤É¤Î¤è¤¦¤ËÊѲ½¤¹¤ë¤«¤ò³Îǧ¤·¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£
¡ã¥Ü¥¿¥ó¤ò²¡¤»¤Ê¤¤¾õÂ֤ˤ¹¤ë½èÍý¡ä
// ¥Ü¥¿¥ó¤òÈó³èÀ²½(ȾƩÌÀ¤Ç²¡¤»¤Ê¤¤¾õÂÖ) ¡¡btnChooseChara.interactable = false; ¡¡btnClosePopUp.interactable = false;
¡ã¥Ü¥¿¥ó¤ò²¡¤»¤ë¾õÂ֤ˤ¹¤ë½èÍý¡ä
// ¥Ü¥¿¥ó¤òÈó³èÀ²½(ȾƩÌÀ¤Ç²¡¤»¤Ê¤¤¾õÂÖ) ¡¡btnChooseChara.interactable = true; ¡¡btnClosePopUp.interactable = true;
¡¡º£²ó¤Ï¤³¤Î³èÀ²½/Èó³èÀ²½¤ÎÀÚ¤êÂؤ¨½èÍý¤ò¥á¥½¥Ã¥É¤Î°ú¿ô¤òÍøÍѤ·¤Æ£±¤Ä¤Î½èÍý¤Ç±¿ÍѽÐÍè¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤Î¤è¤¦¤ÊÀ߷פˤ·¤Æ¤ª¤¯¤³¤È¤Ç¡¢false ÍÑ¡¢true ÍѤȤ¤¤Ã¤¿½èÍý¤òʬ¤±¤Æµ½Ò¤¹¤ëɬÍפ¬¤Ê¤¯¤Ê¤ë¤¿¤á¤Ç¤¹¡£
°ú¿ô¤Î³èÍÑÊýË¡¤ò³Ð¤¨¤ë¤ÈÀ߷פ¬³Ú¤Ë¤Ê¤ë¤À¤±¤Ç¤Ï¤Ê¤¯¡¢ÌÌÇò¤¯¤Ê¤ê¤Þ¤¹¡£
/// <summary> /// ³Æ¥Ü¥¿¥ó¤Î¥¢¥¯¥Æ¥£¥Ö¾õÂÖ¤ÎÀÚ¤êÂؤ¨ /// </summary> /// <param name="isSwitch"></param> public void SwithcActivateButtons(bool isSwitch) btnChooseChara.interactable = isSwitch; btnClosePopUp.interactable = isSwitch; }
¡¡¤³¤Î¾ðÊó¤â¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¾å¤Ç³Îǧ¤ò¹Ô¤¦¤³¤È¤Ç½ÐÍè¤Þ¤¹¡£Àµ¾ï¤ËÀ©¸æ¤¬¹Ô¤ï¤ì¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥¹¥¯¥ê¥×¥Æ¥£¥ó¥°API
Selectable.interactable
https://docs.unity3d.com/2019.1/Documentation/Scri...
¤¹¤¯¤Þ¤ê¤Î¥á¥âÄ¢ ÍÍ
¡ÚUnity¡ÛButton¤òinteractable¤Ç̵¸ú²½¤·¤¿¤ê¡¢Æ°Åª¤Ë¥¤¥Ù¥ó¥È¤òÄɲ乤ëÊýË¡
https://squmarigames.com/2018/12/10/unity-beginner...
¡¡OnComplete ¥á¥½¥Ã¥É¤â SetLoops ¥á¥½¥Ã¥É¤ä SetEase ¥á¥½¥Ã¥É¤ÈƱ¤¸¤è¤¦¤Ë¡¢¥á¥¤¥ó¤È¤Ê¤ë¾¤Î DOTween ¥á¥½¥Ã¥É¤ËÉտ魯¤ë½èÍý¤Ç¤¹¡£
¡¡¤³¤Î½èÍý¤Ï¥³¡¼¥ë¥Ð¥Ã¥¯½èÍý¤Ë¤Ê¤Ã¤Æ¤ª¤ê¡¢°ì½ï¤Ë½èÍý¤·¤Æ¤¤¤ë¥á¥¤¥ó¤Î¥á¥½¥Ã¥É¤Î½èÍý¤Î½ªÎ»¤òÂÔ¤Á¤Þ¤¹¡£
¤½¤Î½èÍý¤¬½ªÎ»¤·¤Æ¤«¤é¡¢¤³¤Î OnComplete ¥á¥½¥Ã¥É¤ÎÃæ¤Ëµ½Ò¤·¤¿½èÍý¤ò¼Â¹Ô¤·¤Æ¤¯¤ì¤Þ¤¹¡£
¡¡º£²ó¤Ï DOFade ¥á¥½¥Ã¥É¤Ë¤è¤Ã¤Æ CanvasGroup ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Alpha ¤ÎÃͤ¬ 0 ¤ËÊѹ¹¤µ¤ì¤¿¸å¤Ë¡¢¤³¤Î OnComplete¥á¥½¥Ã¥É¤Î½èÍý¤¬¼Â¹Ô¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
OnComplete ¥á¥½¥Ã¥É¤Ë¤Ï CharaGenerator ¥¯¥é¥¹¤Î InactivatePlacementCharaSelectPopUp ¥á¥½¥Ã¥É½èÍý¤¬µ½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Î½èÍý¤Ï¡¢DOFade ¥á¥½¥Ã¥É¤Î½èÍý¤¬½ª¤ï¤ë¤Î¤òÂԤ俸å¤Ë¼«Æ°Åª¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¡¡// ¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÈóɽ¼¨ ¡¡canvasGroup.DOFade(0, 0.5f).OnComplete(() => charaGenerator.InactivatePlacementCharaSelectPopUp());
¡¡£±¹Ô¤Ç¤â½ñ¤¯¤³¤È¤Ï½ÐÍè¤Þ¤¹¤¬¡¢Ä¹¤¯¤Ê¤ë¤ÈÆɤߤˤ¯¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤¿¤á¡¢²ÄÆÉÀ¤ò¹â¤á¤ë¤¿¤á¤Ë¤âÊ£¿ô¹Ô¤ËÅϤäƽèÍý¤ò½ñ¤¤¤Æ¤â¤¤¤¤¤Ç¤·¤ç¤¦¡£
¤³¤¦¤¤¤Ã¤¿ÇÛθ¤â¥¹¥¯¥ê¥×¥È¤òµ½Ò¤¹¤ëºÝ¤Ë¤ÏɬÍפǤ¹¤Î¤Ç¡¢²ÄÆÉÀ¤Î¹â¤¤½èÍý¤ò½ñ¤±¤ë¤è¤¦¤Ë¿´¤¬¤±¤Æ¤¯¤À¤µ¤¤¡£
¡¡´°À®¤·¤¿ PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò Prefabs ¥Õ¥©¥ë¥À¤Ø¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤Þ¤¹¡£
¤½¤Î¸å¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¼¡¤Î¼ê½ç¤ÇÍøÍѤ·¤Þ¤¹¤Î¤Ç¡¢
¤½¤Î¤Þ¤Þºï½ü¤·¤Æ¤Ê¤¤¤Ç¡¢°ìö¡¢PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÈóɽ¼¨¤Î¾õÂ֤ˤ·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï´°À®¤Ç¤¹¡£
¡¡CharaGenerator ¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®¤ÈÀßÄê¤ÎÀ©¸æ¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤Î¤È¤¡¢¤³¤Î¥¹¥¯¥ê¥×¥È¤ò½èÍý¤Îµ¯ÅÀ¤È¤·¤Æ¤·¤Þ¤¦¤È¡¢½¤Àµ¤¹¤ëºÝ¤ä¡¢½èÍý¤Î½çÈÖ¤òÄɤ¤¤«¤±¤ë¤³¤È¤¬Æñ¤·¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢EnemyGenerator ¥¹¥¯¥ê¥×¥È¤È GameManager ¥¹¥¯¥ê¥×¥È¤Î¤è¤¦¤Ê´ØÏ¢À¤Ç¤³¤Î CharaGenerator ¥¹¥¯¥ê¥×¥È¤Î½èÍý¤âÀ©¸æ¤ò¹Ô¤¦¤è¤¦¤ËÀ߷פò¹Í¤¨¤Æ¤ß¤Þ¤¹¡£
¡ã½èÍý¤Î¥Õ¥í¡¼¥Á¥ã¡¼¥È¡ä
¡¡GameManager ¥¹¥¯¥ê¥×¥È¤Î Start ¥á¥½¥Ã¥É¤òµ¯ÅÀ¤È¤·¤Æ¡¢CharaGenerator ¥¹¥¯¥ê¥×¥È¤ÎÀßÄê½èÍý¤ò¼Â¹Ô¤¹¤ë ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢ ¡¡CharaGenerator ¥¹¥¯¥ê¥×¥È¤Î SetUpCharaGenerator ¥á¥½¥Ã¥É¤ò¥³¥ë¡¼¥Á¥ó¤Ç¼Â¹Ô¤·¡¢¤½¤ÎÃæ¤Ç¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®½èÍý¤ò¼Â¹Ô¤¹¤ë ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢ ¡¡CharaGenerator ¥¹¥¯¥ê¥×¥È¤Î CreatePlacementCharaSelectPopUp ¥á¥½¥Ã¥É¤ò¥³¥ë¡¼¥Á¥ó¤Ç¼Â¹Ô¤·¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®¤È¡¢PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤ÎÀßÄê½èÍý¤ò¼Â¹Ô¤¹¤ë ¡¡¡¡¡¡¤³¤Î½èÍý¤¬½ªÎ»¤¹¤ë¤Þ¤Ç½èÍý¤ò°ì»þÃæÃǤ¹¤ë¡£¤³¤ì¤Ï¸å¤ÇºîÀ®¤¹¤ë¥¥ã¥é¤Î¥Ü¥¿¥ó¤Ê¤É¤òºîÀ®¤¹¤ë½èÍý¤¬´°À®¤¹¤ë¤Î¤òÂԤĤ¿¤á ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢ ¡¡PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤Î SetUpPlacementCharaSelectPopUp ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤·¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀßÄê¤ò¹Ô¤¦ ¡¡¡¡¡¡¸å¡¹¤Ë¤Ï¤³¤³¤Ç¥¥ã¥é¤Î¥Ü¥¿¥ó¤ÎÀ¸À®½èÍý¤â¹Ô¤¦
¡¡¤³¤ÎÀ߷פ⡢EnemyGenerator ¥¹¥¯¥ê¥×¥È¤ÎÀ©¸æ¤ÈƱ¤¸¤è¤¦¤Ë¡¢GameManager ¥¹¥¯¥ê¥×¥È¤Î Start ¥á¥½¥Ã¥É¤«¤é½èÍý¤¬½çÈ֤˼¹Ԥµ¤ì¤Æ¤¤¤¯·Á¼°¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¼ÂºÝ¤Ë¥¹¥¯¥ê¥×¥È¤Î½¤Àµ¤äºîÀ®¤ò¹Ô¤¦¾ì¹ç¤Ë¤Ï¡¢ºÇ¸å¤Î½èÍý¤«¤éÀ½ºî¤ò»Ï¤á¤Æµ¯ÅÀ¤È¤Ê¤ëÉôʬ¤Þ¤ÇÌá¤ëÍѤˤ¹¤ë¤È½èÍý¤¬½ñ¤¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¥¹¥¯¥ê¥×¥È¤Î½èÍý¤Ï¸Æ¤Ó½Ð¤·Ì¿Îá¤È¸Æ¤Ó½Ð¤µ¤ì¤ë¥á¥½¥Ã¥É¤È¤¬£±ÂФˤʤäƤ¤¤ë¤¿¤á¡¢Àè¤Ë¸Æ¤Ó½Ð¤·Ì¿Îá¤ò½ñ¤¤¤Æ¤·¤Þ¤¦¤È¡¢¸Æ¤Ó½Ð¤µ¤ì¤ë¥á¥½¥Ã¥É¤¬¤Ê¤¤¤¿¤á¡¢¥¨¥é¡¼¤òɽ¼¨¤·¤Þ¤¹¡£
¤½¤Î¤¿¤á¡£¸Æ¤Ó½Ð¤µ¤ì¤ë¥á¥½¥Ã¥É(½èÍý¤Î¼ÂÂÎ)¤òÀè¤ËºîÀ®¤·¤Æ¤«¤é¡¢¸Æ¤Ó½Ð¤·Ì¿Îá¤òµ½Ò¤¹¤ë¤è¤¦¤Ë¤¹¤ëÊý¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£
¡¡
¡¡¤½¤Î´ÑÅÀ¤Ç½èÍý¤ò¹Í¤¨¤ë¤È¡¢½èÍý¤Îµ¯ÅÀ¤Ç¤Ï¤Ê¤¯¡¢ÌÜɸÃÏÅÀ(ºÇ½ªÅª¤Ê½èÍý)¤«¤é¤µ¤«¤Î¤Ü¤Ã¤Æ¤¤¤¯¤³¤È¤Ç¡¢
¸Æ¤Ó½Ð¤µ¤ì¤ë¥á¥½¥Ã¥É¤ò½ñ¤¯¡¡¢ª¡¡¸Æ¤Ó½Ð¤·Ì¿Îá¤ò½ñ¤¯¡¢¤È¤¤¤¦½çÈ֤ǽèÍý¤Î¼ÂÁõ¤¬¤Ç¤¤ë¤¿¤á¤Ç¤¹¡£
¡¡GameManager ¥¹¥¯¥ê¥×¥È¤Î Start ¥á¥½¥Ã¥É¤«¤é¼Â¹Ô¤¹¤ë¤¿¤á¤ÎÀßÄêÍѤνèÍý¤ä¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®½èÍý¤Ê¤É¤ò¼ÂÁõ¤·¤Þ¤¹¡£
ÊÑ¿ô¤ÎÀë¸À¤Ï¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÀ¸À®ÍѤΥץì¥Õ¥¡¥Ö¤äÀ¸À®ÃÏÅÀ¤Î¾ðÊó¤Ê¤É¤òÄɲä·¤Þ¤¹¡£
¡¡Update ¥á¥½¥Ã¥ÉÆâ¤Ë¤ª¤¤¤Æ¥¿¥¤¥ë¥Þ¥Ã¥×¤ò¥¿¥Ã¥×¤·¤¿ºÝ¤Ë¥¥ã¥é¤òÀ¸À®¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢
¤³¤Á¤é¤òÂå¤ï¤ê¤Ë¥Ý¥Ã¥×¥¢¥Ã¥×¤òɽ¼¨¤¹¤ë½èÍý¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡¥Ý¥Ã¥×¥¢¥Ã¥×¤Ë¤Ä¤¤¤Æ¤Ç¤¹¤¬¡¢¥¿¥Ã¥×¤¹¤ë¤¿¤Ó¤Ë¿·¤·¤¯À¸À®¤ò¤·Ä¾¤¹¤³¤È¤â½ÐÍè¤Þ¤¹¡£
¤Ç¤¹¤¬º£²ó¤Î¥±¡¼¥¹¤Î¾ì¹ç¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤ÎÆâÍƤËÊѲ½¤Ï¤Ê¤¤¤¿¤á¡¢ºÇ½é¤Ë£±²ó¤À¤±À¸À®¤·¤Æ¤ª¤¤¤Æ¡¢¤¢¤È¤Ïɽ¼¨/Èóɽ¼¨¤òÀÚ¤êÂؤ¨¤ëÀ©¸æ¤Ç¼ÂÁõ¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
CharaGenerator.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é˺¤ì¤º¤Ë¥»¡¼¥Ö¤ò¤·¤Þ¤¹¡£
¡¡CharaGenerator ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡£
¿·¤·¤¯Àë¸À¤·¤¿ÊÑ¿ô¤¬£²¤Ä¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ËÄɲ䵤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
¡¡PlacementCharaSelectPopUpPrefab ÊÑ¿ô¤Ë¤Ï Prefabs ¥Õ¥©¥ë¥À¤Ë¤¢¤ë PlacementCharaSelectPopUp ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
¼«Æ°Åª¤Ë PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥È¤¬ÅÐÏ¿(ÂåÆþ)¤µ¤ì¤Þ¤¹¡£
¡¡CanvasTran ÊÑ¿ô¤Ë¤Ï¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¼«Æ°Åª¤Ë Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬ÅÐÏ¿(ÂåÆþ)¤µ¤ì¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡Start ¥á¥½¥Ã¥É¤Ï¥²¡¼¥à¤ò¼Â¹Ô¤·¤¿¤ê¡¢¤¢¤ë¤¤¤Ï Instantiate ¥á¥½¥Ã¥É¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¤ê¤·¤¿¤È¤¤Ë1²ó¤À¤±¼«Æ°Åª¤ËÆ°¤¯¥á¥½¥Ã¥É¤Ç¤¹¡£
¤½¤ÎÆÃÀ¾å¡¢¥¯¥é¥¹ÆâÉô¤Î¾ðÊó¤Î½é´üÀßÄê¤ò¹Ô¤¦¾ì¹ç¤ä¡¢¥²¡¼¥à¥¹¥¿¡¼¥È»þ¤Ë¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¤¤¿¤¤¤È¤¤¤Ã¤¿ÍÑÅÓ¤ËÍøÍѤµ¤ì¤ë¥±¡¼¥¹¤¬Â¿¤¤¤Ç¤¹¡£
¡¡¤Ç¤¹¤¬¥³¥ó¥¹¥È¥é¥¯¥¿¥á¥½¥Ã¥É¤È¤Ï°Û¤Ê¤ê¡¢°ú¿ô¤ò»ý¤¿¤Ê¤¤¤¿¤á¡¢Î㤨¤Ð³°Éô¤Î¥¯¥é¥¹¤Ë¤ª¤¤¤Æ Instantiate ¥á¥½¥Ã¥É¤Ë¤è¤Ã¤Æ¥ª¥Ö¥¸¥§¥¯¥È¤¬À¸À®¤µ¤ì¤¿¤È¤·¤Æ¤â
Start ¥á¥½¥Ã¥É¤ÏÆ°¤¤À¤¹¤â¤Î¤Î¡¢Start ¥á¥½¥Ã¥É¤Ç¤Ï¡¢¤½¤Î³°Éô¤Î¥¯¥é¥¹¤«¤é°ú¿ô¤òÄ̤¸¤Æ¾ðÊó¤ò¤â¤é¤¦¤È¤¤¤¦¤³¤È¤¬½ÐÍè¤Þ¤»¤ó¡£
¡¡º£²ó¼ÂÁõ¤·¤Æ¤¤¤ë CharaGenerator ¥¹¥¯¥ê¥×¥È¤Ë¤ª¤¤¤Æ¤Ï¡¢Start ¥á¥½¥Ã¥É¤ÎÂå¤ï¤ê¤È¤Ê¤ë SetUpCharaGenerator ¥á¥½¥Ã¥É¤òÍÑ°Õ¤·¡¢³°Éô¥¯¥é¥¹¤«¤é¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£
private GameManager gameManager; public IEnumerator SetUpCharaGenerator(GameManager gameManager) { this.gameManager = gameManager; //TODO ¥¹¥Æ¡¼¥¸¤Î¥Ç¡¼¥¿¤ò¼èÆÀ //TODO ¥¥ã¥é¤Î¥Ç¡¼¥¿¤ò¥ê¥¹¥È²½ yield return StartCoroutine(CreatePlacementCharaSelectPopUp()); }
¡¡¥á¥½¥Ã¥É¤Î̾Á°¤ÎÄ̤ꡢ¤³¤ì¤Ï Start ¥á¥½¥Ã¥É¤ÎÂå¤ï¤ê¤Ë¡¢°ú¿ô¤ò»ý¤Á¡¢³°Éô¥¯¥é¥¹¤«¤é¾ðÊó¤ò¼õ¤±¼è¤Ã¤Æ½é´üÀßÄê¤ò¹Ô¤¦¤¿¤á¤Î¥á¥½¥Ã¥É¤Ç¤¹¡£
¼êÆ°¤ÇÆ°¤«¤¹¥³¥ó¥¹¥È¥é¥¯¥¿¥á¥½¥Ã¥É¤Î¤è¤¦¤Ê¥¤¥á¡¼¥¸¤Ç¤¹¡£
¡¡³°Éô¥¯¥é¥¹¤è¤ê°ú¿ô¤È¤·¤Æ GameManager ·¿¤Î¾ðÊó¤ò gameManager ÊÑ¿ô¤È¤·¤Æ¼õ¤±¼è¤Ã¤Æ¤¤¤Þ¤¹¡£
¤½¤·¤Æ¤½¤ì¤ò¡¢private ¤ÇÍÑ°Õ¤·¤Æ¤¤¤ë¡¢¤³¤Î¥¯¥é¥¹¤Ë¤¢¤ë gameManager ÊÑ¿ô¤ËÂåÆþ¤·¤Æ¤¤¤Þ¤¹¡£
¡¡this.gameManager = gameManager;
¡¡º¸Êդȱ¦ÊÕ¤ÎÊÑ¿ô¤Î gameManager ÊÑ¿ô¤Ï¡¢Æ±Ì¾¤ÎÊÑ¿ô¤Ç¤Ï¤¢¤ê¤Þ¤¹¤¬¡¢¥¹¥³¡¼¥×¤¬°Û¤Ê¤ê¤Þ¤¹¡£
¤³¤³¤òÍý²ò¤·¤Æ¤ª¤¯¤³¤È¤¬½ÅÍפǤ¹¡£
¡¡º¸ÊդΡ¡gameManager ÊÑ¿ô¤Ï¡¢Æ¬¤Ë this ¤¬¤Ä¤¤¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¡¢this (¤³¤Î¥¯¥é¥¹) ¤Ë¤ÆÀë¸À¤µ¤ì¤Æ¤¤¤ë gameManager ÊÑ¿ô¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
¤Ä¤Þ¤ê¡¢Àë¸À¥Õ¥£¡¼¥ë¥É¤Ë¤ÆÀë¸À¤µ¤ì¤Æ¤¤¤ë private ¤Ê gameManager ÊÑ¿ô¤Ç¤¹¡£
private GameManager gameManager;
¡¡±¦ÊդΠgameManager ÊÑ¿ô¤Ï¡¢Æ¬¤Ë¤Ï this ¤¬¤¢¤ê¤Þ¤»¤ó¡£
¤è¤Ã¤Æ¡¢¤³¤ÎÊÑ¿ô¤Ï¤³¤Î¥á¥½¥Ã¥É¤Î°ú¿ô¤ÇÀë¸À¤µ¤ì¤Æ¤¤¤ëÊý¤Î gameManager ÊÑ¿ô¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡public IEnumerator SetUpCharaGenerator(GameManager gameManager)¡¡//¡¡¢«¡¡¤³¤ì
¡¡¤³¤Î¤è¤¦¤ËƱ¤¸ gameManager ÊÑ¿ô¤Ç¤¹¤¬¡¢¥¹¥³¡¼¥×¤Î°Û¤Ê¤ëÊÑ¿ô¤Ç¤¹¡£
this ¤ÎÍ̵¤Ç¡¢¥×¥í¥°¥é¥à¦¤¬¼«Æ°Åª¤ËȽÃǤ·¤Þ¤¹¡£
¡¡Ì¾Á°¤ËÏǤ蘆¤ì¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£Æäˡ¢¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¤ÇÊÑ¿ô¤òÄ´¤Ù¤Æ¤ß¤ë¤È²Ä»ë²½¤Ç¤¤ë¤Î¤ÇÍý²ò¤¬¿¼¤Þ¤ë¤È»×¤¤¤Þ¤¹¡£
¡¡¤³¤Î¥á¥½¥Ã¥É¤Î½èÍý¤Î¥Ý¥¤¥ó¥È¤Ï¡¢ÊÑ¿ô¤Ø¤ÎÂåÆþ½èÍý¤Ë¤¢¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢½é´ü²½¤Î½èÍý¤Ç¤¹¡£
¡¡private ½¤¾þ»Ò¤ÇÀë¸À¤µ¤ì¤Æ¤¤¤ë gameManager ÊÑ¿ô(this ¤ÎÊý) ¤Ï¡¢¤½¤Î¤Þ¤Þ¤Ç¤Ï null ¤Î¾õÂ֤Ǥ¹¡£
¥¯¥é¥¹¤Ï»²¾È·¿¤ËʬÎव¤ì¤ë·¿¤Ç¤¢¤ë¤¿¤á¡¢ÃÍ·¿¤Î·¿¤È¤Ï°ã¤Ã¤Æ¡¢Àë¸À¤·¤Æ¤âÃæ¿È¤Ë¤Ï²¿¤âÆþ¤Ã¤Æ¤¤¤Þ¤»¤ó¡£null ¤Ç¤¹¡£
¤Þ¤¿ private ¤Ç¤¢¤ë¤¿¤á¡¢¤½¤Î¤Þ¤Þ¤Ç¤Ï¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤è¤ê¥¢¥µ¥¤¥ó¤â¤Ç¤¤Ê¤¤¤Î¤Ç¡¢
¥²¡¼¥à³«»Ï»þ¤Ë¡¢¤³¤ÎÊÑ¿ô¤Ï null ¤Î¤Þ¤Þ¥¹¥¿¡¼¥È¤·¤Þ¤¹¡£¤½¤Î¤Þ¤Þ»È¤ª¤¦¤È¤¹¤ë¤È null ¥¨¥é¡¼¤¬½Ð¤Þ¤¹¡£
¡¡¤³¤¦¤¤¤Ã¤¿¡¢private ¤ÎÊÑ¿ô¤ËɬÍפʾðÊó¤ËÂåÆþ¤·¤¿¤¤¥±¡¼¥¹¤ËÂбþ¤¹¤ë¤¿¤á¡¢
SerializeField°À¤òÉÕÍ¿¤·¤Æ¥¢¥µ¥¤¥ó¤µ¤»¤¿¤ê¡¢GetComponent ¥á¥½¥Ã¥É¤Ç¼èÆÀ¤¹¤ë°Ê³°¤Ë¡¢
º£²ó¤è¤¦¤Ë¡¢³°Éô¤Î¥¯¥é¥¹¤«¤é¼Â¹Ô¤µ¤»¤ë¥á¥½¥Ã¥É¤òÍÑ°Õ¤·¡¢¤½¤Î°ú¿ô¤ò·Ðͳ¤·¤Æ¼èÆÀ¤¹¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
¡¡º£²ó¤Î¼ÂÁõ¤Ç¤Ï¡¢³°Éô¤Î¥¯¥é¥¹(¤³¤³¤Ç¤Ï GameManager ¥¹¥¯¥ê¥×¥È)¤«¤é¼Â¹Ô¤Ç¤¤ë pulbic ¤Î¥á¥½¥Ã¥É(Ëܶµºà¤Î¾ì¹ç¡¢Setup ¡Á ¤ÇÅý°ì)¤òºÎÍѤ·¡¢
³°Éô¤Î¥¯¥é¥¹¤«¤é GameManager ¥¯¥é¥¹¤Î¾ðÊó¤ò¡¢¥á¥½¥Ã¥É¤Î°ú¿ô¤òÄ̤¸¤Æ¤â¤é¤¦¤è¤¦¤Ë¥×¥í¥°¥é¥à¤òÁȤó¤Ç¤¤¤Þ¤¹¡£
¡¡¤½¤¦¤¹¤ë¤³¤È¤Ç¡¢¤³¤Î¥¯¥é¥¹¤¬¼«Ê¬¤Ç GameManager ¥¯¥é¥¹¤Î¾ðÊó¤òõ¤·¤Ë¹Ô¤Ã¤¿¤ê¡¢GetComponent ¥á¥½¥Ã¥É¤ò»È¤ï¤Ê¤¯¤Æ¤â¡¢
¥á¥½¥Ã¥É¤Î°ú¿ô¤òÄ̤¸¤Æ¡¢É¬Íפʼõ¤±¼è¤ë¤³¤È¤Ç private ¤ÊÊÑ¿ô¤Ë¾ðÊó¤òÂåÆþ¤¹¤ë¤³¤È¤¬¤Ç¤¤ë»ÅÁȤߤǤ¹¡£
¡¡ÅöÁ³¡¢ÂåÆþ½èÍý¤À¤±¤ÇºÑ¤ó¤Ç¤¤¤ë¤Î¤Ç¡¢¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òõ¤·¤¿¤ê¡¢¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò¼èÆÀ¤¹¤ë½èÍý¤â¤Ê¤¤¤Î¤Ç¡¢½èÍý¤ÎÉé²Ù¤â·Ú¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡
¡¡Â¾¤Î¥¯¥é¥¹¤Ë¤â Setup ¡Á ¤Ç»Ï¤Þ¤ë½èÍý¤¬½ñ¤¤¤Æ¤¢¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢½èÍý¤ÎÆâÍƤȤ·¤Æ¤ÏƱ¤¸µóÆ°¤Ç¤¹¡£
¡¡¤Þ¤È¤á¤ë¤È¡¢¥¯¥é¥¹Æâ¤Ë¤¢¤ëÊÑ¿ô¤ËÂåÆþ½èÍý¤ò¹Ô¤¦¾ì¹ç¡¢¥¯¥é¥¹Æâ¤ÇɬÍפʾðÊó¤òľÀÜõ¤·¤Ë¹Ô¤¯¤È¤¤¤¦¼êË¡°Ê³°¤Ë¡¢
¥á¥½¥Ã¥É¤Î°ú¿ô¤òÄ̤¸¤Æ¡¢³°Éô¤Î¥¯¥é¥¹¤«¤éɬÍפʾðÊó¤òÁ÷¤Ã¤Æ¤â¤é¤Ã¤Æ¡¢¤½¤ì¤ò¼õ¤±¼è¤Ã¤ÆÊÑ¿ô¤ËÂåÆþ¤µ¤»¤ë¼êË¡¤¬¤¢¤ê¡¢
¸å¼Ô¤ÎÊý¤¬¸úΨ¤¬¤è¤¤½èÍý¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Àè¤Û¤É¤âÀâÌÀ¤·¤¿¤è¤¦¤Ë¡¢½é´ü²½ÍѤΥ᥽¥Ã¥É¤Î°ÕÌ£¤ò»ý¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢¥³¥ó¥¹¥È¥é¥¯¥¿¥á¥½¥Ã¥É¤Ë¶á¤¤Æ°¤¤ò¤¹¤ë¥¤¥á¡¼¥¸¤Ç¤¹¡£
¤½¤Î¤¿¤á¡¢¤³¤ì¤é¤Î Setup ¡Á ¥á¥½¥Ã¥É¤òÍÑ°Õ¤·¤Æ¤¤¤ë¥¯¥é¥¹¤Ë¤Ï Start ¥á¥½¥Ã¥É¤¬¤¢¤ê¤Þ¤»¤ó¡£
¡¡Start ¥á¥½¥Ã¥É¤Ï½èÍý¤ò¹Ô¤¦½çÈÖ¤¬ Unity Ǥ¤»¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤¿¤á¡¢
Ê£¿ô¤Î¥¹¥¯¥ê¥×¥È¤Ë¤ª¤¤¤Æ Start ¥á¥½¥Ã¥É¤¬½ñ¤«¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
½èÍý¤Î½çÈÖ¤¬Á°¸å¤·¤Æ¤·¤Þ¤Ã¤¿¤»¤¤¤Ç¡¢½èÍý¤¬´Ö¤Ë¹ç¤ï¤Ê¤¯¤Æ¥¨¥é¡¼¤¬½Ð¤Æ¤·¤Þ¤¦²ÄǽÀ¤¬»Ä¤ê¤Þ¤¹¡£
¡¡Âå¤ï¤ê¤ËÀè¤Û¤É¤Î¤è¤¦¤Ê½é´ü²½ÀìÍѤΥ᥽¥Ã¥É¤òÍÑ°Õ¤·¤Æ¤ª¤¯¤³¤È¤Ç¡¢
¥×¥í¥°¥é¥à¤ò½ñ¤¯Â¦(»ä¤¿¤Á)¤¬½èÍý¤ò¼Â¹Ô¤¹¤ë¥¿¥¤¥ß¥ó¥°¤òÁȤßΩ¤Æ¤Æ¤¤¤¯¤³¤È¤¬¤Ç¤¤ë¡¢¤È¤¤¤¦¥á¥ê¥Ã¥È¤¬¤¢¤ê¤Þ¤¹¡£
Unity ¤¬¾¡¼ê¤ËÆ°¤«¤µ¤Ê¤¤Âå¤ï¤ê¤Ë¡¢¤³¤Á¤é¤Ç½ñ¤¤¤¿½çÈÖÄ̤ê¤ËÆ°¤«¤¹¤³¤È¤¬¤Ç¤¤ë¡¢¤È¤¤¤¦°ÕÌ£¤Ç¤¹¡£
¡¡¤³¤ì¤â¡¢¿È¶á¤Ê¤â¤Î¤ËÃÖ¤´¹¤¨¤Æ¹Í¤¨¤Æ¤ß¤ë¤È¤ï¤«¤ê¤ä¤¹¤¤¤Ç¤¹¡£
¡¡Ã¯¤«¤Ë¡Ö¤´ÈÓ¤ÎÍÑ°Õ¤·¤Æ¡×¡ÖÇ㤤ʪ¹Ô¤Ã¤Æ¤¤Æ¡×¡Ö¤ªÉ÷ϤÁݽü¤·¤Æ¡×¤È¤¤¤¦¤ª´ê¤¤¤ò¤µ¤ì¤¿¤È¤¡¢
Æäˡ¢½çÈÖ¤¬¤Ê¤«¤Ã¤¿¤é¼«Ê¬¤ÎÅÔ¹ç¤ÇÆ°¤¤Þ¤¹¡£¤³¤ì¤¬ Unity ¤ËǤ¤»¤¿¾ì¹ç¤Ç¤¹¡£
Unity ¤ÎÅÔ¹ç¤Ç¡¢³Æ¥¹¥¯¥ê¥×¥È¤Ë¤¢¤ë Start ¥á¥½¥Ã¥É¤¬½çÉÔƱ¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¡Ö¤´ÈÓ¤ÎÍѰաפ¬ºÇ½é¤Î¤³¤È¤â¤¢¤ì¤Ð¡¢¡Ö¤ªÉ÷ϤÁݽü¡×¤¬ºÇ½é¤Î¤³¤È¤â¤¢¤ê¡¢½èÍý¤Î½çÈÖ¤¬Ëè²óÉÔ³ÎÄê¤Ç¤¹¡£
¡¡¤Ç¤¹¤¬¡¢ºÇ½é¤«¤é¡ÖÇ㤤ʪ¹Ô¤Ã¤Æ¤¤Æ¡×¢Í¡Ö¤ªÉ÷ϤÁݽü¤·¤Æ¡×=>¡Ö¤´ÈÓ¤ÎÍÑ°Õ¤·¤Æ¡×¤È¤ª´ê¤¤¤µ¤ì¤ì¤Ð¡¢
ÌäÂ꤬¤¢¤ì¤ÐÁêÃ̤¹¤ì¤Ð½çÈÖ¤òÊѤ¨¤ì¤Þ¤¹¤·¡¢´ðËÜŪ¤Ë¤Ï½çÈÖ¤ò¼é¤ê¤Þ¤¹¡£
¤³¤ì¤¬¡¢¥×¥í¥°¥é¥à¤Ç¤¤¤¦¤È¤³¤í¤Î¡¢½èÍý¤ò¼Â¹Ô¤¹¤ë¥¿¥¤¥ß¥ó¥°¤òÁȤßΩ¤Æ¤Æ¡¢½çÈÖÄ̤ê¤ËÆ°¤«¤¹¡¢¤È¤¤¤¦¾ì¹ç¤Ç¤¹¡£
¡¡¤½¤·¤Æ¥×¥í¥°¥é¥à¤Î¾ì¹ç¤Ë¤Ï¡¢¸å¼Ô¤ÎÊý¤¬¥×¥í¥°¥é¥à¤ò½ñ¤¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¤Í¡£
½èÍý¤Î½çÈÖ¤âÊѹ¹¤Ç¤¤Æ¡¢½ñ¤¤¤¿Ä̤ê¤Ë¼Â¹Ô¤·¤Æ¤¯¤ì¤ëÌõ¤Ç¤¹¤·¡¢ÌäÂ꤬¤¢¤Ã¤¿¾ì¹ç¤Ë¤â¤É¤³¤Þ¤ÇÆ°¤¤¤Æ¤¤¤ë¤Î¤«ÇÄ°®¤Ç¤¤ë¤Î¤Ç¡¢¸¶°ø¤òÆÃÄꤷ¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¤³¤ÎÊÕ¤ê¤ËÃíÌܤ·¤Æ¡¢¤É¤Î¤è¤¦¤Ë¤·¤Æ½èÍý¤¬ÁȤßΩ¤Æ¤é¤ì¤Æ¤¤¤ë¤Î¤«¤òÆɤ߲ò¤¤¤Æ¤¤¤Ã¤Æ¤¤¤¿¤À¤±¤ë¤È¤è¤¤¤È»×¤¤¤Þ¤¹¡£
¡¡GameManager ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡£
¿·¤·¤¯Àë¸À¤·¤¿ÊÑ¿ô¤¬¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ËÄɲ䵤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë CharaGenerator ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¼«Æ°Åª¤Ë CharaGenerator ¥¹¥¯¥ê¥×¥È¤¬ÅÐÏ¿(ÂåÆþ)¤µ¤ì¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡¥Ý¥Ã¥×¥¢¥Ã¥×¤¬À¸À®¤µ¤ì¤Æ¡¢¤½¤Î¸å¼«Æ°Åª¤Ë¥Ý¥Ã¥×¥¢¥Ã¥×¤¬Èóɽ¼¨¤Ê¤ë¤«³Îǧ¤·¤Þ¤¹¡£
˺¤ì¤º¤Ë¡¢PlacementCharaSelectPopUp ¥¹¥¯¥ê¥×¥ÈÆâ¤Î¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ¤¤¤¿½èÍý¤ò½¤Àµ¤·¡¢¥³¥á¥ó¥È¥¢¥¦¥È¤ò²ò½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
¡¡º£¤Þ¤Ç¤È¤ª¤Ê¤¸¤è¤¦¤Ë¥¿¥¤¥ë¥Þ¥Ã¥×¾å¤ò¥¿¥Ã¥×¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¥¥ã¥é¤ÎÀ¸À®½èÍý¤Ç¤Ï¤Ê¤¯¤Æ¡¢Èóɽ¼¨¤Ë¤Ê¤Ã¤Æ¤¤¤¿¥Ý¥Ã¥×¥¢¥Ã¥×¤¬½ù¡¹¤Ëɽ¼¨¤µ¤ì¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡¡Î¾Êý¤Î¥Ü¥¿¥ó¤ò¤½¤ì¤¾¤ì²¡¤·¤Æ¡¢¥Ý¥Ã¥×¥¢¥Ã¥×¤¬ÊĤ¸¤ë¤«³Îǧ¤ò¹Ô¤¤¤Þ¤¹¡£
²¿²ó¤«²¡¤·¤Æ¤ß¤Æ¡¢Ê£¿ô¤Î¥Ý¥Ã¥×¥¢¥Ã¥×¤¬ºî¤é¤ì¤Æ¤¤¤Ê¤¤¤«¤â³Îǧ¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£²£°¡¡¡Ý¥¥ã¥éÁªÂòÍѤΥܥ¿¥ó·¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯