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