예제 #1
0
        IEnumerator Coroutine3()
        {
            while (true)
            {
                yield return(YieldInstructioner.GetWaitForSeconds(1));

                Debug.Log("协程 Coroutine3 执行!");
            }
        }
예제 #2
0
    private static IEnumerator DelayExecute(Action action, float delaySeconds)
    {
        yield return(YieldInstructioner.GetWaitForSeconds(delaySeconds));

        action();
    }