corrected transition to diff scenes
This commit is contained in:
parent
4af3440db7
commit
5bf3af2ed2
|
@ -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
|
||||||
|
|
|
@ -67,3 +67,4 @@
|
||||||
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