Skip to content
GitLab
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
4d78f2d6
Commit
4d78f2d6
authored
Sep 28, 2018
by
Jan Meissner
Browse files
Fixed a bug preventing the level select from working as intended
parent
b9b47a01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Assets/_Game/Scripts/LevelSelectController.cs
View file @
4d78f2d6
...
...
@@ -36,8 +36,13 @@ public class LevelSelectController : MonoBehaviour {
button
.
SetActive
(
false
);
// Deactivates NextPageButton because there isnt' a next page
GameObject
nextPage
=
button
.
transform
.
parent
.
Find
(
"ButtonNextPage"
).
gameObject
;
nextPage
.
SetActive
(
false
);
if
(
button
.
transform
.
parent
.
Find
(
"ButtonNextPage"
)
!=
null
)
{
GameObject
nextPage
=
button
.
transform
.
parent
.
Find
(
"ButtonNextPage"
).
gameObject
;
nextPage
.
SetActive
(
false
);
}
// Next page can't be opened so buttons on it don't have to be changed
if
(
i
%
6
==
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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