Exemplo n.º 1
0
 private static void OnPostRender(Camera cam)
 {
     if (OnPostRenderCam == null)
     {
         OnPostRenderCam = cam;
     }
     if (OnPostRenderCam == cam)
     {
         MelonCoroutines.ProcessWaitForEndOfFrame();
     }
 }
Exemplo n.º 2
0
 void FixedUpdate()
 {
     MelonHandler.OnFixedUpdate();
     MelonCoroutines.ProcessWaitForFixedUpdate();
 }
Exemplo n.º 3
0
 void FixedUpdate()
 {
     MelonLoader.Main.OnFixedUpdate();
     MelonCoroutines.ProcessWaitForFixedUpdate();
 }
Exemplo n.º 4
0
 void Update()
 {
     transform.SetAsLastSibling();
     MelonHandler.OnUpdate();
     MelonCoroutines.Process();
 }
Exemplo n.º 5
0
 void Update()
 {
     transform.SetAsLastSibling();
     MelonLoader.Main.OnUpdate();
     MelonCoroutines.Process();
 }
Exemplo n.º 6
0
 public void ProcessWaitForEndOfFrame() => MelonCoroutines.ProcessWaitForEndOfFrame();
Exemplo n.º 7
0
 public void StopCoroutine(object coroutineToken) => MelonCoroutines.Stop(coroutineToken);
Exemplo n.º 8
0
 public object StartCoroutine(IEnumerator coroutine) => MelonCoroutines.Start(coroutine);
Exemplo n.º 9
0
 public void StopCoroutine(object coroutineToken) => MelonCoroutines.Stop((IEnumerator)coroutineToken);