Example #1
0
 private static void OnPostRender(Camera cam)
 {
     if (OnPostRenderCam == null)
     {
         OnPostRenderCam = cam;
     }
     if (OnPostRenderCam == cam)
     {
         MelonCoroutines.ProcessWaitForEndOfFrame();
     }
 }
Example #2
0
 void FixedUpdate()
 {
     MelonHandler.OnFixedUpdate();
     MelonCoroutines.ProcessWaitForFixedUpdate();
 }
Example #3
0
 void FixedUpdate()
 {
     MelonLoader.Main.OnFixedUpdate();
     MelonCoroutines.ProcessWaitForFixedUpdate();
 }
Example #4
0
 void Update()
 {
     transform.SetAsLastSibling();
     MelonHandler.OnUpdate();
     MelonCoroutines.Process();
 }
Example #5
0
 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);