Skip to content

Commit

Permalink
Fix GetMoveNext/PatchMoveNext not working with all UniTask variants
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 24, 2021
1 parent ceda4b6 commit 3dda4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared.Core/Utilities/CoroutineUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static MethodInfo GetMoveNext(MethodBase targetMethod)

Type enumeratorType;
#if !PH && !KK
if (il.Method.ReturnType.Name == "UniTask")
if (il.Method.ReturnType.Name.StartsWith("UniTask"))
{
enumeratorType = il.Body.Variables[0].VariableType.ResolveReflection();
if (!enumeratorType.Name.Contains(targetMethod.Name))
Expand Down

0 comments on commit 3dda4db

Please sign in to comment.