Commit 44e578ec authored by Christopher Benes's avatar Christopher Benes
Browse files
parents eb8a9bc1 5495c707
...@@ -18,7 +18,7 @@ public class LevelSelectController : MonoBehaviour { ...@@ -18,7 +18,7 @@ public class LevelSelectController : MonoBehaviour {
{ {
int highestLevel = GameManager.Instance.HighestLevel; int highestLevel = GameManager.Instance.HighestLevel;
int lastLevel = GameManager.Instance.LastLevel; int lastLevel = GameManager.Instance.LastLevel;
int pagesNeeded = lastLevel / 6 + 1; int pagesNeeded = lastLevel % 6 == 0? lastLevel/6 : lastLevel/6 + 1;
int buttonsOnLastPage = lastLevel % 6; int buttonsOnLastPage = lastLevel % 6;
GameObject currentPage; GameObject currentPage;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment