Skip to content

Instantly share code, notes, and snippets.

@Goncharuk-Nikita
Created March 13, 2019 13:17
Show Gist options
  • Save Goncharuk-Nikita/777107a30a892719f88b04c8ae2064b1 to your computer and use it in GitHub Desktop.
Save Goncharuk-Nikita/777107a30a892719f88b04c8ae2064b1 to your computer and use it in GitHub Desktop.
private void Method()
{
car wait = new WaitForKeyDown(this);
wait.Execute(KeyCode.Space).Done += (i) => DoSomething();
}
private IEnumerator Method()
{
yield return new WaitForKeyDown(this) { Key = KeyCode.Space };
// do something;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment