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