Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TreasureCollected()
- {
- collected++;
- if (collected == numTreasures)
- {
- levelComplete = true;
- }
- }
- bool LevelEndMessage(string message, string buttonText)
- {
- GUI.skin.label.alignment = TextAnchor.MiddleCenter;
- GUI.Label(new Rect(Screen.width / 2 - 200 / 2, Screen.height / 2 - 75, 200, 50), message);
- return GUI.Button(new Rect(Screen.width / 2 - 200 / 2, Screen.height / 2 + 25, 200, 50), buttonText);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement