Game Development Reference
In-Depth Information
}
6. Now, we have finished adding UserData in the UIHiscore script. If we click
on Play and let our character die or kill all enemies, we will see that there is the
GAMEOVER UI similar to to the following screenshot (to make it faster to test,
we can set the CharacterClass.IS_GAMEOVER to true and click on Play
to see the result too):
The SUBMIT , LOCAL HI-SCORE , and SERVER HI-SCORE buttons don't
do anything right now. We will add the functionality for each of the other buttons
later.
7. Next, we will create the Hiscore script, which will be the base case of both the
LocalHiscore and ServerHiscore scripts. So, let's navigate to Chapter8 |
Scripts | C# | Hiscore (for C# users) or Chapter8 | Scripts | Javascript | Hiscore
(for Unity JavaScript users), right-click and navigate to Create | C# Script (for
Search WWH ::




Custom Search