-
-
Save anonymous/13526510d1232ae73fa4 to your computer and use it in GitHub Desktop.
Kablooie notifications
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
handle("OnScoreChanged") | |
{ | |
// Note: this string usage generates no heap garbage in the | |
// long term, thanks to StringBuilder/aggressive pooling behind | |
// the scenes. | |
string scoreStr = ""; | |
scoreStr.AppendIntToStr(someScoreIntValue); | |
img.ScoreLabel.SetTextWithKnownChars(scoreStr); | |
} | |
// Send notification to any and all who are listening. | |
scn.this.SendMotification("OnScoreChanged"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment