diff --git a/MoCha/Assets/Scenes/Home.unity b/MoCha/Assets/Scenes/Home.unity new file mode 100644 index 0000000..0927032 Binary files /dev/null and b/MoCha/Assets/Scenes/Home.unity differ diff --git a/MoCha/Assets/Scenes/Home.unity.meta b/MoCha/Assets/Scenes/Home.unity.meta new file mode 100644 index 0000000..7bcfa93 --- /dev/null +++ b/MoCha/Assets/Scenes/Home.unity.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ed097c72d1ecf81408d01af25de00b55 +timeCreated: 1524248251 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/MoCha/Assets/Scripts/LeaderboardManager.cs b/MoCha/Assets/Scripts/LeaderboardManager.cs index e4b6321..7c9c9d2 100644 --- a/MoCha/Assets/Scripts/LeaderboardManager.cs +++ b/MoCha/Assets/Scripts/LeaderboardManager.cs @@ -68,7 +68,7 @@ public class LeaderboardManager : MonoBehaviour int currentIndex = currentPage * 10; int test = players.Count - currentIndex; - if (test < 0) + if (test <= 0) { return; } diff --git a/MoCha/Assets/Scripts/MochaParser.cs b/MoCha/Assets/Scripts/MochaParser.cs index 2534190..2f63f60 100644 --- a/MoCha/Assets/Scripts/MochaParser.cs +++ b/MoCha/Assets/Scripts/MochaParser.cs @@ -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); } /* diff --git a/MoCha/ProjectSettings/ProjectSettings.asset b/MoCha/ProjectSettings/ProjectSettings.asset index 7c42a65..9f249b3 100644 Binary files a/MoCha/ProjectSettings/ProjectSettings.asset and b/MoCha/ProjectSettings/ProjectSettings.asset differ diff --git a/MoCha/ProjectSettings/ProjectVersion.txt b/MoCha/ProjectSettings/ProjectVersion.txt index 27997c5..2576b78 100644 --- a/MoCha/ProjectSettings/ProjectVersion.txt +++ b/MoCha/ProjectSettings/ProjectVersion.txt @@ -1 +1 @@ -m_EditorVersion: 2017.3.1f1 +m_EditorVersion: 2017.2.1f1