IEnumerator RunEndOfFrameMicroCoroutine() { this.endOfFrameMicroCoroutine = new MicroCoroutine( () => { if (endOfFrameCountForRefresh > EndOfFrameRefreshCycle) { endOfFrameCountForRefresh = 0; return(true); } else { return(false); } }, ex => unhandledExceptionCallback(ex)); while (true) { yield return(YieldInstructionCache.WaitForEndOfFrame); endOfFrameCountForRefresh++; endOfFrameMicroCoroutine.Run(); } }
IEnumerator RunFixedUpdateMicroCoroutine() { this.fixedUpdateMicroCoroutine = new MicroCoroutine( () => { if (fixedUpdateCountForRefresh > FixedUpdateRefreshCycle) { fixedUpdateCountForRefresh = 0; return(true); } else { return(false); } }, ex => unhandledExceptionCallback(ex)); while (true) { yield return(YieldInstructionCache.WaitForFixedUpdate); fixedUpdateCountForRefresh++; fixedUpdateMicroCoroutine.Run(); } }
IEnumerator RunUpdateMicroCoroutine() { this.updateMicroCoroutine = new MicroCoroutine( () => { if (updateCountForRefresh > UpdateRefreshCycle) { updateCountForRefresh = 0; return(true); } else { return(false); } }, ex => unhandledExceptionCallback(ex)); while (true) { yield return(null); updateCountForRefresh++; updateMicroCoroutine.Run(); } }
void LateUpdate() { if (lateUpdate != null) { lateUpdate.OnNext(Unit.Default); } lateUpdateMicroCoroutine.Run(); }
IEnumerator RunEndOfFrameMicroCoroutine() { while (true) { yield return(YieldInstructionCache.WaitForEndOfFrame); endOfFrameMicroCoroutine.Run(); } }
IEnumerator RunFixedUpdateMicroCoroutine() { while (true) { yield return(YieldInstructionCache.WaitForFixedUpdate); fixedUpdateMicroCoroutine.Run(); } }
IEnumerator RunUpdateMicroCoroutine() { while (true) { yield return(null); updateMicroCoroutine.Run(); } }
IEnumerator RunEndOfFrameMicroCoroutine() { this.endOfFrameMicroCoroutine = new MicroCoroutine(ex => unhandledExceptionCallback(ex)); while (true) { yield return(YieldInstructionCache.WaitForEndOfFrame); endOfFrameMicroCoroutine.Run(); } }
IEnumerator RunFixedUpdateMicroCoroutine() { this.fixedUpdateMicroCoroutine = new MicroCoroutine(ex => unhandledExceptionCallback(ex)); while (true) { yield return(YieldInstructionCache.WaitForFixedUpdate); fixedUpdateMicroCoroutine.Run(); } }
IEnumerator RunUpdateMicroCoroutine() { this.updateMicroCoroutine = new MicroCoroutine(ex => unhandledExceptionCallback(ex)); while (true) { yield return(null); updateMicroCoroutine.Run(); } }
IEnumerator RunFixedUpdateMicroCoroutine() { var fu = new WaitForFixedUpdate(); while (true) { yield return(fu); fixedUpdateMicroCoroutine.Run(); } }
IEnumerator RunEndOfFrameMicroCoroutine() { var eof = new WaitForEndOfFrame(); while (true) { yield return(eof); endOfFrameMicroCoroutine.Run(); } }