Committing for the night.
This commit is contained in:
parent
a1934f0e84
commit
d5d06e9f9e
6 changed files with 17 additions and 6 deletions
BIN
MoCha/Assets/Scenes/Home.unity
Normal file
BIN
MoCha/Assets/Scenes/Home.unity
Normal file
Binary file not shown.
9
MoCha/Assets/Scenes/Home.unity.meta
Normal file
9
MoCha/Assets/Scenes/Home.unity.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ed097c72d1ecf81408d01af25de00b55
|
||||
timeCreated: 1524248251
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -68,7 +68,7 @@ public class LeaderboardManager : MonoBehaviour
|
|||
int currentIndex = currentPage * 10;
|
||||
int test = players.Count - currentIndex;
|
||||
|
||||
if (test < 0)
|
||||
if (test <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -182,15 +182,17 @@ public class MochaParser
|
|||
|
||||
public IEnumerator GrabLeaderboard (string request, Text usernames, Text scores, LeaderboardManager lbm)
|
||||
{
|
||||
// Comment this to test hardcoded players.
|
||||
yield return MakeRequest (request);
|
||||
|
||||
// Remove this later.
|
||||
MakePlayers();
|
||||
// Uncomment this to test hardcoded players.
|
||||
//MakePlayers();
|
||||
|
||||
lbm.setPlayers (players);
|
||||
lbm.setInitialBoard (usernames, scores);
|
||||
|
||||
// Move this back to the top of this function.
|
||||
yield return MakeRequest (request);
|
||||
// Uncomment this to test hardcoded players.
|
||||
//yield return MakeRequest (request);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
m_EditorVersion: 2017.3.1f1
|
||||
m_EditorVersion: 2017.2.1f1
|
||||
|
|
Reference in a new issue