Commit 94d91b15 by Tim Reiter

added instruction panel.

parent ce991bfa
......@@ -7,6 +7,7 @@ using UnityEngine.UI;
public class Menu : MonoBehaviour
{
public GameStateTracker gameStateTracker;
public GameObject instructionPanel;
public GameObject gameUI;
public GameMaster gameMaster;
public GameObject menuPanel;
......@@ -69,6 +70,13 @@ public class Menu : MonoBehaviour
void Update()
{
if(Input.GetKeyDown(KeyCode.Return)) {
instructionPanel.SetActive(!instructionPanel.activeSelf);
}
if(instructionPanel.activeSelf) {
return; //RETURN when instructionpanel is shown.
}
if (Debug.isDebugBuild)
{
for (int i = 0; i < 10; i++)
......@@ -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.
......
No preview for this file type
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