Committing for the night.

This commit is contained in:
Alex Huddleston 2018-04-20 22:44:29 -05:00
parent a1934f0e84
commit d5d06e9f9e
6 changed files with 17 additions and 6 deletions

Binary file not shown.

View file

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: ed097c72d1ecf81408d01af25de00b55
timeCreated: 1524248251
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -68,7 +68,7 @@ public class LeaderboardManager : MonoBehaviour
int currentIndex = currentPage * 10; int currentIndex = currentPage * 10;
int test = players.Count - currentIndex; int test = players.Count - currentIndex;
if (test < 0) if (test <= 0)
{ {
return; return;
} }

View file

@ -182,15 +182,17 @@ public class MochaParser
public IEnumerator GrabLeaderboard (string request, Text usernames, Text scores, LeaderboardManager lbm) public IEnumerator GrabLeaderboard (string request, Text usernames, Text scores, LeaderboardManager lbm)
{ {
// Comment this to test hardcoded players.
yield return MakeRequest (request);
// Remove this later. // Uncomment this to test hardcoded players.
MakePlayers(); //MakePlayers();
lbm.setPlayers (players); lbm.setPlayers (players);
lbm.setInitialBoard (usernames, scores); lbm.setInitialBoard (usernames, scores);
// Move this back to the top of this function. // Uncomment this to test hardcoded players.
yield return MakeRequest (request); //yield return MakeRequest (request);
} }
/* /*

View file

@ -1 +1 @@
m_EditorVersion: 2017.3.1f1 m_EditorVersion: 2017.2.1f1