Created
March 13, 2019 13:17
-
-
Save Goncharuk-Nikita/777107a30a892719f88b04c8ae2064b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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