Scene changes and Bug fixes #336
|
@ -4461,7 +4461,7 @@
|
||||||
Scripts:
|
Scripts:
|
||||||
- Type: GameManager
|
- Type: GameManager
|
||||||
Enabled: true
|
Enabled: true
|
||||||
winScene: 92009475
|
winScene: 86098106
|
||||||
loseScene: 91685359
|
loseScene: 91685359
|
||||||
currGameState: 0
|
currGameState: 0
|
||||||
totalItemCount: 0
|
totalItemCount: 0
|
||||||
|
|
|
@ -66,4 +66,5 @@
|
||||||
Components: ~
|
Components: ~
|
||||||
Scripts:
|
Scripts:
|
||||||
- Type: MainMenu
|
- Type: MainMenu
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
sceneID: 96668835
|
|
@ -3,6 +3,7 @@ using SHADE;
|
||||||
|
|
||||||
public class MainMenu : Script
|
public class MainMenu : Script
|
||||||
{
|
{
|
||||||
|
public uint sceneID;
|
||||||
protected override void awake()
|
protected override void awake()
|
||||||
{
|
{
|
||||||
Audio.PlayBGMOnce2D("event:/Music/main_menu");
|
Audio.PlayBGMOnce2D("event:/Music/main_menu");
|
||||||
|
@ -17,7 +18,7 @@ public class MainMenu : Script
|
||||||
if (Input.GetKeyUp(Input.KeyCode.Space))
|
if (Input.GetKeyUp(Input.KeyCode.Space))
|
||||||
{
|
{
|
||||||
Audio.PlaySFXOnce2D("event:/UI/success");
|
Audio.PlaySFXOnce2D("event:/UI/success");
|
||||||
SceneManager.ChangeScene(86098106);
|
SceneManager.ChangeScene(sceneID);
|
||||||
Audio.StopAllSounds();
|
Audio.StopAllSounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue