-
-
Save anonymous/2b09f37fb4c24dde1b2c to your computer and use it in GitHub Desktop.
Kablooie closure and delaysec keyword
This file contains 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
img label = img.Label; | |
float waitSeconds = 4; | |
delaysec(waitSeconds) | |
{ | |
label.SetTextWithKnownChars("Done waiting now."); | |
delaysec(waitSeconds) | |
{ | |
// Execution of this line is delayed by (2 * waitSeconds). | |
label.SetTextWithKnownChars("Ha, just kidding, actually waited some more."); | |
} | |
} | |
// Execution continues here without stopping, so this is the first message shown. | |
label.SetTextWithKnownChars("Please wait..."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment