Revision 171:4f53dc842587 Assets/Scripts/GuiManager.cs
b/Assets/Scripts/GuiManager.cs | ||
---|---|---|
13 | 13 |
private float hourSliderValue = 0.0F; |
14 | 14 |
private TOD_Time tod; |
15 | 15 |
private float lastTODtime; // store the last value of TOD time before sliding |
16 |
private int sceneNumber = 0; |
|
17 |
private int totalScenes = 2; |
|
16 | 18 |
|
17 | 19 |
void OnGUI() { |
18 | 20 |
if (hourSlider) { |
... | ... | |
62 | 64 |
playerMarker.GetComponent<MeshRenderer> ().enabled = !playerCamera.enabled; |
63 | 65 |
|
64 | 66 |
} |
67 |
if (Input.GetKeyUp (".")) { |
|
68 |
sceneNumber += 1 % totalScenes; |
|
69 |
Application.LoadLevel(sceneNumber); |
|
70 |
} |
|
65 | 71 |
} |
66 | 72 |
} |
Also available in: Unified diff