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