Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GDW-SS-18
to-the-surface
Commits
5495c707
Commit
5495c707
authored
Sep 29, 2018
by
Jan Meissner
Browse files
Fixed a bug regarding the LevelSelect
parent
4117043b
Changes
1
Show whitespace changes
Inline
Side-by-side
Assets/_Game/Scripts/LevelSelectController.cs
View file @
5495c707
...
...
@@ -18,7 +18,7 @@ public class LevelSelectController : MonoBehaviour {
{
int
highestLevel
=
GameManager
.
Instance
.
HighestLevel
;
int
lastLevel
=
GameManager
.
Instance
.
LastLevel
;
int
pagesNeeded
=
lastLevel
/
6
+
1
;
int
pagesNeeded
=
lastLevel
%
6
==
0
?
lastLevel
/
6
:
lastLevel
/
6
+
1
;
int
buttonsOnLastPage
=
lastLevel
%
6
;
GameObject
currentPage
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment