Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
94d91b15
Commit
94d91b15
authored
Jun 06, 2015
by
Tim Reiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added instruction panel.
parent
ce991bfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
MenuUI.prefab
Assets/Resources/Prefabs/MenuUI.prefab
+0
-0
Menu.cs
Assets/Scripts/Menu.cs
+9
-0
game.unity
Assets/game.unity
+0
-0
No files found.
Assets/Resources/Prefabs/MenuUI.prefab
View file @
94d91b15
No preview for this file type
Assets/Scripts/Menu.cs
View file @
94d91b15
...
@@ -7,6 +7,7 @@ using UnityEngine.UI;
...
@@ -7,6 +7,7 @@ using UnityEngine.UI;
public
class
Menu
:
MonoBehaviour
public
class
Menu
:
MonoBehaviour
{
{
public
GameStateTracker
gameStateTracker
;
public
GameStateTracker
gameStateTracker
;
public
GameObject
instructionPanel
;
public
GameObject
gameUI
;
public
GameObject
gameUI
;
public
GameMaster
gameMaster
;
public
GameMaster
gameMaster
;
public
GameObject
menuPanel
;
public
GameObject
menuPanel
;
...
@@ -69,6 +70,13 @@ public class Menu : MonoBehaviour
...
@@ -69,6 +70,13 @@ public class Menu : MonoBehaviour
void
Update
()
void
Update
()
{
{
if
(
Input
.
GetKeyDown
(
KeyCode
.
Return
))
{
instructionPanel
.
SetActive
(!
instructionPanel
.
activeSelf
);
}
if
(
instructionPanel
.
activeSelf
)
{
return
;
//RETURN when instructionpanel is shown.
}
if
(
Debug
.
isDebugBuild
)
if
(
Debug
.
isDebugBuild
)
{
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
for
(
int
i
=
0
;
i
<
10
;
i
++)
...
@@ -217,6 +225,7 @@ public class Menu : MonoBehaviour
...
@@ -217,6 +225,7 @@ public class Menu : MonoBehaviour
}
}
}
}
}
}
}
}
//returns the player number (3 for player three). returns -1 when there is no free player slot.
//returns the player number (3 for player three). returns -1 when there is no free player slot.
...
...
Assets/game.unity
View file @
94d91b15
No preview for this file type
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