private static void OnPostRender(Camera cam) { if (OnPostRenderCam == null) { OnPostRenderCam = cam; } if (OnPostRenderCam == cam) { MelonCoroutines.ProcessWaitForEndOfFrame(); } }
void FixedUpdate() { MelonHandler.OnFixedUpdate(); MelonCoroutines.ProcessWaitForFixedUpdate(); }
void FixedUpdate() { MelonLoader.Main.OnFixedUpdate(); MelonCoroutines.ProcessWaitForFixedUpdate(); }
void Update() { transform.SetAsLastSibling(); MelonHandler.OnUpdate(); MelonCoroutines.Process(); }
void Update() { transform.SetAsLastSibling(); MelonLoader.Main.OnUpdate(); MelonCoroutines.Process(); }
public void ProcessWaitForEndOfFrame() => MelonCoroutines.ProcessWaitForEndOfFrame();
public void StopCoroutine(object coroutineToken) => MelonCoroutines.Stop(coroutineToken);
public object StartCoroutine(IEnumerator coroutine) => MelonCoroutines.Start(coroutine);
public void StopCoroutine(object coroutineToken) => MelonCoroutines.Stop((IEnumerator)coroutineToken);