IEnumerator Coroutine3() { while (true) { yield return(YieldInstructioner.GetWaitForSeconds(1)); Debug.Log("协程 Coroutine3 执行!"); } }
private static IEnumerator DelayExecute(Action action, float delaySeconds) { yield return(YieldInstructioner.GetWaitForSeconds(delaySeconds)); action(); }