ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2021ǯ11·î17Æü(¿å) 12:00:51ÍúÎò
¡¡
¡¡¤³¤³¤Ç¤Ï GameManager ¥¯¥é¥¹¤È¡¢¤½¤ì¤È°Í¸´Ø·¸¤Ë¤¢¤ë¥¯¥é¥¹¤Î½èÍý¤ò½çÈ֤˸«Ä¾¤·¤Æ¤¤¤¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
ȯŸ£²¡¡¡ÝUniRX (ReactivePropery)¤òÍøÍѤ·¤¿½èÍý¤Î¼ÂÁõ¡¡Ý
£´¡¥¥¯¥é¥¹´Ö¤Î°Í¸´Ø·¸¤Î¸«Ä¾¤·
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥¯¥é¥¹¤Î°Í¸´Ø·¸¤ÈÁ·ë¹ç ¡¡¡¦UniRX ¤Î¥ª¥Ú¥ì¡¼¥¿¡¼µ¡Ç½¤Î¼ÂÁõÎã¡¡¡¡¼Where ¥á¥½¥Ã¥É¡¼ ¡¡¡¦UniRX ¤Î´ðËÜÆ°ºî¡¡¡¡¼Dispose ¥á¥½¥Ã¥É¡¼
¡¡GameManager ¥¯¥é¥¹¤È¡¢¤½¤Î¾¤Î¥¯¥é¥¹¤È¤Î´Ö¤Î°Í¸´Ø·¸¤Ë¤Ä¤¤¤Æ¹Í¤¨¤Æ¡¢²ò¾Ã¤Ç¤¤ëÉôʬ¤Ë¤Ä¤¤¤Æ¤Ï°Í¸´Ø·¸¤ò²ò¾Ã¤·¤Æ¡¢¥¯¥é¥¹¤ÎÆÈΩÀ¤ò¹â¤á¤Þ¤¹¡£
¡¡ºÇ½é¤Ë¡¢¸½ºß¤Î GameManager ¥¯¥é¥¹¤È JobsConfirmPopUp ¥¯¥é¥¹¤Î´Ø·¸¤ò¸«¤Æ¤¤¤¤Þ¤¹¡£
¡ã¥¯¥é¥¹´Ö¤Î°Í¸´Ø·¸¡ä
¡¡GameManager ¥¯¥é¥¹¡¡¢Î¡¡JobsConfirmPopUp ¥¯¥é¥¹
¡¡GameManager ¥¯¥é¥¹¤Ï¡¢JobsConfirmPopUp ¥¯¥é¥¹¤ò¥×¥ì¥Õ¥¡¥Ö¤Î¾ðÊó¤È¤·¤Æ´ÉÍý¤·¤Æ¤ª¤ê¡¢¥¤¥ó¥¹¥¿¥ó¥¹¤¹¤ë½èÍý¤òôÅö¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤ÎºÝ¤Ë¡¢JobsConfirmPopUp ¥¯¥é¥¹¤Î SetUpJobsConfirmPopUp ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤·¡¢GameManager ¥¯¥é¥¹¤Î¾ðÊó¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¤³¤ì¤Ï¡¢¤ª¸ß¤¤¤¬¤ª¸ß¤¤¤òÃΤäƤª¤ê¡¢¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ë¡¢°Í¸¤·¤Æ¤¤¤ë´Ø·¸¤Ç¤¢¤ë¤È¸À¤¨¤Þ¤¹¡£
»²¹Í¥µ¥¤¥È
Qiita @wm3 ÍÍ
¥×¥í¥°¥é¥à¤Î°Í¸´Ø·¸¤È¥â¥¸¥å¡¼¥ë¹½À®¤Î¤³¤È
https://qiita.com/wm3/items/2c90bfd9e973d368ebd8
¡¡¤³¤¦¤¤¤Ã¤¿À߷פξì¹ç¡¢¤É¤Á¤é¤«°ìÊý¤ÎÊѹ¹¤Ë¤è¤ê¡¢¤â¤¦°ìÊý¤Î½èÍý¤¬¾å¼ê¤¯À©¸æ¤Ç¤¤Ê¤¯¤Ê¤ë¶²¤ì¤¬¤¢¤ê¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢²Äǽ¤Ç¤¢¤ì¤Ð¡¢Ã±°ìÊý¸þ¤Î°Í¸´Ø·¸¤Ë½¤Àµ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢£±¤Ä¤Î¥¯¥é¥¹¤ÎÆÈΩÀ¤¬Êݤ¿¤ì¤ë¤³¤È¤Ë¤è¤ê¡¢°Í¸´Ø·¸¤¬Çö¤¯¤Ê¤ê¡¢Á·ë¹ç²½¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡ã¤ä¤ê¤¿¤¤¤³¤È¡¡¤½¤Î¡¡ä
¡¡GameManager ¥¯¥é¥¹¡¡¢ª¡¡JobsConfirmPopUp ¥¯¥é¥¹(GameManager ¥¯¥é¥¹¤À¤±¤¬ JobsConfirmPopUp ¥¯¥é¥¹¤òÃΤäƤ¤¤ë)
¡ã¤ä¤ê¤¿¤¤¤³¤È¡¡¤½¤Î¢¡ä
¡¡GameManager ¥¯¥é¥¹¡¡¢«¡¡JobsConfirmPopUp ¥¯¥é¥¹(JobsConfirmPopUp ¥¯¥é¥¹¤À¤±¤¬ GameManager ¥¯¥é¥¹¤òÃΤäƤ¤¤ë)
¡¡Á°²ó¤Î¼ê½ç¤Ç¼ÂÁõ¤ò¹Ô¤Ã¤¿ ReactivePropery ¤Î¾ì¹ç¤âƱ¤¸¤Ç¡¢GameData ¥¯¥é¥¹¤Î¤³¤È¤ò UIManager ¥¯¥é¥¹¤À¤±¤¬ÃΤäƤ¤¤ë¾õÂÖ(ñ°ìÊý¸þ)¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¤ª¸ß¤¤¤Ë°Í¸¤·¤¢¤¦¤³¤È¤Ê¤¯¡¢½èÍý¤Î¼ÂÁõ¤¬¼Â¸½½ÐÍè¤Æ¤¤¤Þ¤¹¡£
¡¡º£²ó¤Î¼ÂÁõ¤âƱ¤¸¤è¤¦¤Ë¹Í¤¨¤Þ¤¹¡£
¤¤¤Þ¤Þ¤Ç¤Ï°Í¸¤·¤¢¤Ã¤Æ¤¤¤¿¥¯¥é¥¹¤òÊÒÊý¤À¤±¤¬Áê¼ê¤Î¥¯¥é¥¹¤Î¤³¤È¤òÃΤäƤ¤¤ë¾õÂ֤˺î¤êÊѤ¨¤Þ¤¹¡£
¡¡¤Þ¤º¤Ï JobsConfirmPopUp ¥¯¥é¥¹¤ÎÆÈΩÀ¤ò¹â¤á¤Æ¡¢GameManager ¥¯¥é¥¹¤Î¤³¤È¤ò¡ÖÃΤé¤Ê¤¤¡×¾õÂ֤ˤ·¤Þ¤¹¡£
¤½¤ÎÂå¤ï¤ê¤Ë¡¢ReactivePropery ¤ò½àÈ÷¤·¤Æ¡¢JobsConfirmPopUp ¥¯¥é¥¹¤ÇȯÀ¸¤·¤¿¾õÂÖ¤ò³°Éô¤Î¥¯¥é¥¹¤ËÄÌÃΤǤ¤ë¾õÂÖ¤ËÊѤ¨¤Þ¤¹¡£
¡¡¤½¤·¤Æ¡¢GameManager ¥¯¥é¥¹¤Ç¤Ï JobsConfirmPopUp ¥¯¥é¥¹¤Î¾ðÊó¤ò ReactivePropery ¤òÄ̤¸¤ÆÃΤë(´Æ»ë)¤¹¤ë¤è¤¦¤ËÊѹ¹¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ReactivePropery ¤Ï¡¢ÃͤËÊѲ½¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¡¢¹ØÆɼÔ(GameManager ¥¯¥é¥¹)¤ËÂФ·¤Æ¡¢ÄÌÃΤòȯ¹Ô¤·¤Þ¤¹¡£
¤½¤Î¥¿¥¤¥ß¥ó¥°¤Ç¡¢GameManager ¥¯¥é¥¹¤Ïͽ¤áÍÑ°Õ¤·¤Æ¤ª¤¤¤¿¥á¥½¥Ã¥É¤ò¼Â¹Ô¤¹¤ëÀ߷פǤ¹¡£
¡¡using ¤ËÀë¸À¤òÄɲ䷤ơ¢ReactivePropery ¤òÍøÍѤǤ¤ë¤è¤¦¤ËÄɲä·¤Þ¤¹¡£
¡¡GameManager ¥¯¥é¥¹¤È¤Î°Í¸´Ø·¸¤ò²ò¾Ã¤¹¤ë¤¿¤á¡¢OpenPopUp ¥á¥½¥Ã¥É¤ÎÂè2°ú¿ô¤Ç¼õ¤±¼è¤Ã¤Æ¤¤¤¿ GameManager ¥¯¥é¥¹¤Î¾ðÊó¤òºï½ü¤·¡¢¼õ¤±¼è¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤ì¤Ç JobsConfirmPopUp ¥¯¥é¥¹¤Ï GameManager ¥¯¥é¥¹¤ò¡ÖÃΤé¤Ê¤¤¡×¾õÂ֤ˤʤê¤Þ¤¹¡£
¡¡ClosePopUp ¥á¥½¥Ã¥É¤ò½¤Àµ¤·¡¢ReactivePropery ¤ÎÃͤËÂФ·¤Æ¡¢ÁªÂò¤·¤¿¥Ü¥¿¥ó¤Î¼ïÎà¤Ë±þ¤¸¤Æ¡¢true ¤« false ¤«¤ÇÂåÆþ¤ò¹Ô¤¤¤Þ¤¹¡£
¤³¤ÎÃͤÎÊѹ¹¤¬È¯À¸¤¹¤ë¥¿¥¤¥ß¥ó¥°¤Ç¡¢GameManager ¥¯¥é¥¹Â¦¤ËÄÌÃΤ¬ÆϤ¡¢GameManager ¥¯¥é¥¹¤¬¼«Æ°Åª¤ËÍÑ°Õ¤·¤Æ¤¢¤Ã¤¿¥¤¥Ù¥ó¥È(¥á¥½¥Ã¥É)¤ò¼Â¹Ô¤·¤Þ¤¹¡£
¡¡°Ê¾å¤Î¤è¤¦¤ÊÀ߷פËÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢JobsConfirmPopUp ¥¯¥é¥¹¤Ï¡¢¼«Ê¬¤ÎÃæ¤À¤±¤Ç¹Ô¤¦½èÍý¤Î¤ß¤Ë¤Ê¤ê¡¢ÆÈΩÀ¤¬¹â¤¯¤Ê¤ë¤È¤È¤â¤Ë¡¢
¤³¤Î¥¯¥é¥¹¤«¤é³°Éô¥¯¥é¥¹¤Ø¤Î¸Æ¤Ó½Ð¤·Ì¿Îá¤â¤Ê¤¯¤Ê¤ë¤¿¤á¡¢¥¹¥¯¥ê¥×¥ÈƱ»Î¤Î°Í¸´Ø·¸¤¬¤Ê¤¯¤Ê¤ê¡¢¥¹¥¯¥ê¥×¥È¤Î²ÄÆÉÀ¤â¾å¤¬¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
JobsComfirmPopUp.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£
¡¡JobsConfirmPopUp ¥¯¥é¥¹¤ò¥¤¥ó¥¹¥¿¥ó¥¹¤¹¤ëºÝ¤Î½èÍý¤Ë½¤Àµ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¥¤¥ó¥¹¥¿¥ó¥¹¤·¤¿¸å¤Ë¼Â¹Ô¤¹¤ë OpenPopUp ¥á¥½¥Ã¥É¤Ç¤Ï¡¢Âè2°ú¿ô¤òºï½ü¤·¤Æ¡¢GameManager ¥¯¥é¥¹¤Î¾ðÊó¤òÅϤµ¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤ì¤Ï¤¹¤Ç¤Ë JobsConfirmPopUp ¥¯¥é¥¹Â¦¤Ç¤âÀßÄêºÑ¤Ç¤¹¡£
¡¡Â³¤¤¤Æ¡¢JobsConfirmPopUp ¥¯¥é¥¹¤ËÄɲä·¤¿ ReactivePropery ¤Î´Æ»ë½èÍý¤òÄɲä·¤Þ¤¹¡£
¡¡¤³¤³¤Ç¤â´Æ»ë½èÍý¤Ï°ìÅټ¹Ԥ¹¤ì¤Ð¡¢¤¢¤È¤Ï¤º¤Ã¤È´Æ»ë¾õÂ֤ˤʤê¤Þ¤¹¡£
ÈóƱ´ü½èÍý¤Ë¤Ê¤ë¤¿¤á¡¢JobsConfirmPopUp ¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òÊÝ»ý¤·¤Æ¤ª¤¯É¬Íפ⤢¤ê¤Þ¤»¤ó¡£
¡¡¤³¤Î ReactivePropery ¤Ï JobsConfirmPopUp ¥¯¥é¥¹¤ÇÀ©¸æ¤·¤Æ¤¤¤ë¤¤¤º¤ì¤«¤Î¥Ü¥¿¥ó½èÍý¤¬¼Â¹Ô¤µ¤ì¤Æ ClosePopUp ¥á¥½¥Ã¥É¤¬¼Â¹Ô¤µ¤ì¤¿¤È¤¤Ë
Ãͤι¹¿·¤¬¼Â¹Ô¤µ¤ì¤ë¤Î¤Ç¡¢¤½¤Î¥¿¥¤¥ß¥ó¥°¤Ç¡¢¥¤¥Ù¥ó¥È¤¬È¯À¸¤·¡¢Subscribe ¥á¥½¥Ã¥É¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë JudgeSubmitJob ¥á¥½¥Ã¥É¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¡¡¤³¤ÎÀ߷פˤè¤ê¡¢GameManager ¥¯¥é¥¹¤Î¤ß¤¬¡¢JobsConfirmPopUp ¥¯¥é¥¹¤òÃΤäƤ¤¤Æ´Æ»ë¤·¤Æ¤¤¤ë¾õÂÖ¤òºî¤ê¤À¤¹¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡ã¤ä¤ê¤¿¤¤¤³¤È¡¡¤½¤Î¡¡ä
¡¡GameManager ¥¯¥é¥¹¡¡¢ª¡¡JobsConfirmPopUp ¥¯¥é¥¹(GameManager ¥¯¥é¥¹¤À¤±¤¬ JobsConfirmPopUp ¥¯¥é¥¹¤òÃΤäƤ¤¤ë)
GameManager.cs
¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤·¤Þ¤¹¡£
¡¡UniRX ¤Ë¤Ï¥ª¥Ú¥ì¡¼¥¿¡¼¤È¤¤¤¦¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤¦µ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£
¥ª¥Ú¥ì¡¼¥¿¡¼¤Ë¤Ï¿¤¯¤Îµ¡Ç½¤¬¥á¥½¥Ã¥É¤È¤·¤ÆÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤¿¤á¡¢¤½¤ì¤ò¥á¥½¥Ã¥É¥Á¥§¡¼¥ó¤òÍøÍѤ·¡¢¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤Ã¤Æ¡¢¤½¤Î·ë²Ì¤ò¼õ¤±¤Æ¼¡¤Î½èÍý¤ò¼Â¹Ô¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡Where ¥á¥½¥Ã¥É¤â¥ª¥Ú¥ì¡¼¥¿¡¼¤Î£±¤Ä¤Ç¤¹¡£°ú¿ô¤Ë»ØÄꤷ¤¿¾ðÊó¤ËÂФ·¤Æ¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡Where ¥á¥½¥Ã¥É¤Î°ú¿ôÆâ¤Ë¾ò·ï¼°¤òµ½Ò¤·¡¢¤½¤Î¾ò·ï¼°¤òËþ¤¿¤·¤¿¥á¥Ã¥»¡¼¥¸(º£²ó¤Ç¤¢¤ì¤Ð ReactivePropery ¤ÎÃÍ)¤òÄ̲ᤵ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ÄÌÃΤò¼Â¹Ô¤·¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢ReactivePropery ¤ÎÃͤ¬Êѹ¹¤µ¤ì¤¿¤À¤±¤Ç¤ÏÄÌÃΤϼ¹Ԥµ¤ì¤º¡¢Where ¥á¥½¥Ã¥É¤Î¾ò·ï¼°¤òËþ¤¿¤·¤¿¤È¤¤À¤±¡¢¼¡¤Î½èÍý¤ò¼Â¹Ô¤¹¤ë¡¢¤È¤¤¤¦¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤¦¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
// JobsConfirmPopUp ¥¯¥é¥¹¤Î ButtonReactivePropery ¤ò´Æ»ë¤·¡¢true ¤Ë¤Ê¤Ã¤¿¤È¤¤À¤±¡¢JudgeSubmitJob ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤¹¤ë jobsConfirmPopUp.ButtonReactiveProperty.Where(x => x == true).Subscribe(x => JudgeSubmitJob(jobsConfirmPopUp.ButtonReactiveProperty.Value, tapPointDetail, -1, jobsConfirmPopUp));
¡¡º£²ó¤Î¾ì¹ç¤Ë¤Ï¡¢Where ¥á¥½¥Ã¥É¤Î°ú¿ô¤Ë¡ÖReactivePropery ¤ÎÃÍ(x)¤¬¡¢true ¤ÎÃͤǤ¢¤ë¡×¤ò¾ò·ï¤È¤·¤ÆÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢ReactivePropery ¤ÎÃͤ¬¹¹¿·¤µ¤ì¤Æ¥á¥Ã¥»¡¼¥¸¤¬È¯¹Ô¤µ¤ì¤¿¤È¤¤Ë¡¢¤³¤Î¾ò·ï¼°¤òËþ¤¿¤·¤Æ¤¤¤ë¾ì¹ç(true)¤Î¤ß¡¢¼¡¤Î Subscribe ¥á¥½¥Ã¥É¤¬¼Â¹Ô¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡UniRX ¤Ï¤³¤Î¤è¤¦¤Ë¡¢ÆüËܸì¤Î¥³¥á¥ó¥È½ñ¼°¤Î¥¤¥á¡¼¥¸¤Ë¶á¤¤ÆâÍÆ¤Ç¥×¥í¥°¥é¥à¤òµ½Ò¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤¿¤á¡¢²ÄÆÉÀ¤Î¹â¤¤¥³¡¼¥É¤Ç¼ÂÁõ¤·¤Æ¤¤¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡UniRX ¤Ç¤Ï¥á¥Ã¥»¡¼¥¸¤Îȯ¹Ô¸µ¤ò¥¹¥È¥ê¡¼¥à¥½¡¼¥¹¤È¤¤¤¤¤Þ¤¹¡£º£²ó¤Ç¤¢¤ì¤Ð¡¢ReactivePropery ¤¬¥¹¥È¥ê¡¼¥à¥½¡¼¥¹¤È¤Ê¤ê¤Þ¤¹¡£
¡¡
¡¡¥¹¥È¥ê¡¼¥à¥½¡¼¥¹¤ò¹ØÆÉ¡¢¤Ä¤Þ¤ê¡¢ReactivePropery ¤Î´Æ»ë¤ò¹Ô¤¦¾ì¹ç¡¢¤½¤Î½èÍý¤ÏÅÓÃæ¤Ç½ªÎ»¤¹¤ë¤³¤È¤Ê¤¯¡¢¤º¤Ã¤ÈÆ°¤Â³¤±¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢Æ°¤»Ï¤á¤¿¥¹¥È¥ê¡¼¥à¥½¡¼¥¹¤ËÂФ·¤Æ¤Ï¡¢Å¬Àڤʥ¿¥¤¥ß¥ó¥°¤ÇÇË´þ¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Ê¤¤¤È¡¢¸«¤¨¤Ê¤¤Éôʬ¤ÇÆ°¤Â³¤±¤Æ¤¤¤ë¤³¤È¤Ë¤è¤ê
ͽ´ü¤»¤ÌÉôʬ¤Ç¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤ê¡¢¥á¥â¥ê¤Î¥ê¡¼¥¯¤ò°ú¤µ¯¤³¤¹¸¶°ø¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Dispose ¥á¥½¥Ã¥É¤Ï¡¢¤³¤Î¥¹¥È¥ê¡¼¥à¥½¡¼¥¹¤Î½èÍý¤òÇË´þ¤¹¤ëÌ¿Îá¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡// ButtonReactivePropery ¤Î Subscribe ¥á¥½¥Ã¥É¤Î¹ØÆɤòÄä»ß¤¹¤ë ¡¡jobsConfirmPopUp.ButtonReactiveProperty.Subscribe().Dispose();
¡¡º£²ó¤Î¥±¡¼¥¹¤Ç¤Ï¡¢Subscribe ¥á¥½¥Ã¥É¤ËÂФ·¤ÆÇË´þ¤¹¤ëÌ¿Îá¤ò¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¤³¤Î½èÍý°Ê¹ß¤Ï¡¢¥á¥Ã¥»¡¼¥¸¤¬È¯¹Ô(ReactivePropery ¤ÎÃͤ¬¹¹¿·)¤µ¤ì¤Æ¤â¡¢Subscribe ¥á¥½¥Ã¥ÉÆâ¤Ë»ØÄꤷ¤Æ¤¤¤¿½èÍý¤¬Æ°¤«¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡Ãí°ÕÅÀ¤È¤·¤Æ¤Ï¡¢Dispose ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤¹¤ëÂоݤǤ¹¡£
¡¡º£²ó¤Î¤è¤¦¤Ë Subscribe ¥á¥½¥Ã¥É¤ËÂФ·¤Æ Dispose ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤·¤¿¾ì¹ç¡¢Subscribe ¥á¥½¥Ã¥É¤ÏÇË´þ¤µ¤ì¤Þ¤¹¤¬¡¢
ReactivePropery ¤ËÂФ·¤Æ¹Ô¤Ã¤Æ¤¤¤Ê¤¤¤¿¤á¡¢ºÆÅÙ¡¢Æ±¤¸ ReactivePropery ¤«¤é¹ØÆɤ¹¤ë½èÍý¤òºÆ³«¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡// ButtonReactivePropery ¤Î¹ØÆɤòÄä»ß¤¹¤ë ¡¡jobsConfirmPopUp.ButtonReactiveProperty.Dispose();¡¡
¡¡¤³¤ì¤ËÂФ·¤Æ¡¢¾åµ¤Î¤è¤¦¤Ë ReactivePropery ¼«ÂÎ¤Ë Dispose ¥á¥½¥Ã¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢ReactivePropery ¼«ÂΤνèÍý¤¬ÇË´þ¤µ¤ì¤Þ¤¹¡£
¤³¤Î¾ì¹ç¡¢ºÆÅÙ¹ØÆɽèÍý¤ò¼Â¹Ô¤·¤Æ¤â¡¢ReactivePropery ¼«ÂΤ¬ÇË´þ¤µ¤ì¤Æ¤¤¤ë¤¿¤á¡¢¹ØÆɽèÍý¤òºÆ³«¤¹¤ë¤³¤È¤¬½ÐÍè¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¤³¤ì¤¬Â礤ʰ㤤¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¾õ¶·¤Ë±þ¤¸¤ÆÇË´þ¤¹¤ëÊýË¡¤ò¹Í¤¨¤Æ¤¤¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
¡¡º£²ó¤Î¼ÂÁõ¤â¥ê¥Õ¥¡¥¯¥¿¥ê¥ó¥°¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¥²¡¼¥à¾å¤Î½èÍý¤Ïº£¤Þ¤Ç¤ÈƱ¤¸¤è¤¦¤ËÀµ¾ï¤ËÆ°ºî¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯