You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
To understand how you might customize these scripts for use in your project, start by exploring each script implemented in the Firebase_Leaderboard>Scripts directory, Firebase_Leaderboard>Demo and Mechahamster. Feel free to read through the code in Unity as you orient yourself to these scripts.
<td>This script creates the Firebase.Leaderboard namespace, which is called by many of the other scripts. It contains the primary logic for the leaderboard and handles keeping the data from Firebase and Unity Game code synchronized by sending events to Firebase and triggering updates in the game when receiving new data.
<td>Represents a single user score record kept in FirebaseDatabase. By default a user score contains a timestamp, score value, and the User's unique ID. You may modify this class to add fields, but if you remove or change any of the three default fields, you will need to update the logic in LeaderboardController to match.
<td>In the Firebase_Leaderboard DemoScene, this script controls the Demo Interface.
107
+
</td>
108
+
</tr>
109
+
If you update the LeaderBoardController script for your game, you will need to update this script with any new information.
110
+
</td>
111
+
</tr>
112
+
<tr>
113
+
<td>Assets>Hamster>Scripts>States>UploadTime
114
+
</td>
115
+
<td>In Mechahamster, this script creates a class called UploadTime, which manages the transfer of data to Firebase when the user selects the Submit! button at the end of a maze and logs their score.
116
+
</td>
117
+
</tr>
118
+
<tr>
119
+
<td>Assets>Hamster>Scripts>States>TopTimes
120
+
</td>
121
+
<td>In Mechahamster, this script creates a class called TopTime, which manages the top finish times for a level.
122
+
</td>
123
+
</tr>
124
+
<tr>
125
+
<td>Assets>Hamster>Scripts>Menus>TopTimesGUI
126
+
</td>
127
+
<td>In Mechahamster, this script creates an Interface class for providing code access to the GUI elements in the high score menu.
128
+
</td>
129
+
</tr>
130
+
<tr>
131
+
<td>Assets>Hamster>Scripts>States>LevelFinished
132
+
</td>
133
+
<td>In Mechahamster, this script creates a class called LevelFinished, which manages the logic driving the Level Finished menu page.
134
+
</td>
135
+
</tr>
136
+
<tr>
137
+
<td>Assets>Hamster>Scripts>Menus>LevelFinishedGUI
138
+
</td>
139
+
<td>In Mechahamster, this script creates an Interface class for providing code access to the GUI elements in the Level Finished menu.
0 commit comments