From b1633897a9af23c9c7ac1c006c3070598a10309e Mon Sep 17 00:00:00 2001 From: ManlyMarco <39247311+ManlyMarco@users.noreply.github.com> Date: Sat, 27 Nov 2021 00:29:13 +0100 Subject: [PATCH] Update summary --- src/Shared.Core/Utilities/CoroutineUtils.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Shared.Core/Utilities/CoroutineUtils.cs b/src/Shared.Core/Utilities/CoroutineUtils.cs index ba96dad..2aa1fe8 100644 --- a/src/Shared.Core/Utilities/CoroutineUtils.cs +++ b/src/Shared.Core/Utilities/CoroutineUtils.cs @@ -223,10 +223,10 @@ public static MethodInfo GetMoveNext(MethodBase targetMethod) } /// - /// Use to patch coroutines/yielding methods. - /// This will method automatically find the compiler-generated MoveNext method that contains the coroutine code and apply patches on that. The method you patch must return an IEnumerator. + /// Used to patch coroutines/IEnumerator methods and async UniTask methods. + /// This will method automatically find the compiler-generated MoveNext method that contains the coroutine code and apply patches on that. The method you patch must return an IEnumerator or an UniTask. /// Warning: Postfix patches will not work as expected, they might be fired after every iteration. Prefix is practically the same as prefixing the entry method. It's best to only use transpliers with this method. - /// Note: When writing transpliers for coroutines you might want to turn off the "Decompiler\DecoDecompile enumerators" setting in DnSpy so that you can see the real code. + /// Note: When writing transpliers you might want to turn off the "Decompiler\Decompile enumerators/async" settings in DnSpy so that you can see the real code. /// /// public static MethodInfo PatchMoveNext(this Harmony harmonyInstance,