WaitWhile ã¯ã³ã«ã¼ãã³ã® yield ã¹ãã¼ãã¡ã³ãã¨ã¨ãã«ãã使ç¨ã§ãã¾ããã å§è²ãããããªã²ã¼ãã MonoBehaviour.Update å¾ã¨ MonoBehaviour.LateUpdate åã«åãã¬ã¼ã ã§å®è¡ããã¾ããããªã²ã¼ãã false ã¨å¤æãããã¨ãããã§ãã³ã«ã¼ãã³ãå®è¡ãç¶ç¶ãã¾ãã using UnityEngine; using System.Collections; public class WaitWhileExample : MonoBehaviour { public int frame; void Start() { StartCoroutine(Example()); } IEnumerator Example() { Debug.Log("Waiting for prince/princess to rescue me...");
{{#tags}}- {{label}}
{{/tags}}