This commit is contained in:
CortexCore
2024-08-05 09:53:22 +08:00
parent d33e1c1713
commit cc3d6f0ef1
7 changed files with 52 additions and 13 deletions

View File

@@ -325,7 +325,12 @@ namespace BITKit.Net
{
dynamic result = methodInfo.Invoke(handle, pars)!;
if (methodInfo.ReturnType == typeof(void) || methodInfo.ReturnType == typeof(UniTask))
if (methodInfo.ReturnType == typeof(void)
||
methodInfo.ReturnType == typeof(UniTask)
||
methodInfo.ReturnType == typeof(UniTask<>)
)
{
await result;
value = -1;