Fix coroutine error with latest unhollower

This commit is contained in:
js6pak committed 2021-06-20 22:48:19 +02:00
1 parent a9b79fe35b
commit 68db747a6e
1 file changed
+1 -1
+1 -1
View File
@@ -230,7 +230,7 @@ namespace Reactor
{
Camera.onPostRender = Camera.onPostRender == null
? new Action<Camera>(OnPostRenderM)
: Il2CppSystem.Delegate.Combine(Camera.onPostRender, Il2CppSystem.Delegate.CreateDelegate(GetIl2CppType(), GetIl2CppType().GetMethod(nameof(OnPostRenderM), Il2CppSystem.Reflection.BindingFlags.Static | Il2CppSystem.Reflection.BindingFlags.Public))).Cast<Camera.CameraCallback>();
: Il2CppSystem.Delegate.Combine(Camera.onPostRender, (Camera.CameraCallback) (Action<Camera>) OnPostRenderM).Cast<Camera.CameraCallback>();
}
private void FixedUpdate()