UniTask as a method argument #461
gabaguiarp
started this conversation in
General
Replies: 2 comments
-
void OnGoalRequirementFulfilled() change to void OnGoalRequirementFulfilled() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just pass a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to await a UniTask from another script by passing it as an argument to a public method, but if I try to pass a UniTask call similarly to what we do with C# Actions, I get an error message saying: cannot convert from 'method group' to 'Cysharp.Threading.Tasks.UniTask'.
I understand what the error means, but I'm also not sure what could be the proper way to pass a UniTask call as an argument.
This is my structure:
Script A
Script B
Passing UnlockAsync as the argument in Script A causes the aforementioned error.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions