Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit e85ea6a

Browse files
committed
Make Il2CppProvider actually process FixedUpdate coroutines
1 parent af889e6 commit e85ea6a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/Core/Runtime/Il2Cpp/Il2CppProvider.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,24 @@ private void Application_logMessageReceived(string condition, string stackTrace,
4343
ExplorerCore.LogUnity(condition, type);
4444
}
4545

46-
public override void StartCoroutine(IEnumerator routine)
46+
public override void Update()
4747
{
48-
Il2CppCoroutine.Start(routine);
48+
Il2CppCoroutine.Process();
4949
}
5050

5151
internal override void ProcessOnPostRender()
5252
{
5353
Il2CppCoroutine.ProcessWaitForEndOfFrame();
5454
}
5555

56-
public override void Update()
56+
internal override void ProcessFixedUpdate()
5757
{
58-
Il2CppCoroutine.Process();
58+
Il2CppCoroutine.ProcessWaitForFixedUpdate();
59+
}
60+
61+
public override void StartCoroutine(IEnumerator routine)
62+
{
63+
Il2CppCoroutine.Start(routine);
5964
}
6065

6166
public override T AddComponent<T>(GameObject obj, Type type)

0 commit comments

Comments
 (0)