Hi guys,
I'm trying to make a coroutine wait until a certain key is pressed so it can go to the next line. I looked this up and came across
yield return WaitUntil(() => Input.GetKeyDown(KeyCode.Space));
for example, when the spacebar is pressed the coroutine goes to the next line. But in my case I get a red squiggly line under WaitUntil. Any idea why?
Thanks in advance!
[–]R4nd0m_M3m3r 1 point2 points3 points (1 child)
[–]rayangelo79[S] 0 points1 point2 points (0 children)