2018-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ã³ã«ã¼ãã³ã¨ä¸ç·ã«ãWaitForSecondsããã使ããã¾ãï¼ ä¸å®æéå¾ æ©ããå¾ã«å¦çãåéããã¡ã½ããã§ãï¼ ãããå®ã¯WaitForSecondsã§æ±ãããæéã¯ãTime.timeScaleã«å½±é¿ããã Time.timeScaleã0ã«ããã¨æ°¸ä¹ ã«åéããã¾ããï¼ Time.timeScaleã®å½±é¿â¦
gameObjectãç ´å£ãã¦Hierarchyä¸ããæ¶ãå»ãããæã«ãããDestroyã¡ã½ããã使ããã¾ãï¼ ããDestroyã§ç ´å£ãããgameObjectã¯å®ã¯ã¾ã è£å´ã§åå¨ãã¦ãã¾ãï¼(ãªãã¸ã§ã¯ãã®æ°ã確èªããã¨åããã¾ã) å®å ¨ã«æ¶ãå»ãããå ´åã«ã¯ãDestroyã®ä»£ããã«Dâ¦
ç¹å¥é£ãããã¨ã§ã¯ãªãã®ã§ããã ã³ã«ã¼ãã³å ã§æéã»é çªã管çããªããå¦çãè¡ãæ¹æ³ã§ãï¼ yield return ã§ã³ã«ã¼ãã³ãå¼ã³åºãã°ã ã³ã«ã¼ãã³ãçµäºããã¾ã§ã¯å ã«é²ããã¨ã¯ããã¾ããï¼ ã³ã«ã¼ãã³å ã§ã³ã«ã¼ãã³ãå¼ã³åºãã¦ãå¦ççµäºã¾ã§æ¬¡ã®â¦