Skip to content

Commit

Permalink
Fixed game over menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertigo2720 committed May 6, 2019
1 parent 8bdc676 commit 3f0ba20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
34 changes: 3 additions & 31 deletions Assets/Scripts/SceneSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,9 @@ public void GotoMainScene()
{
SceneManager.LoadScene("Level1");
}

public void GotoMenuScene()
{
SceneManager.LoadScene("MainMenu");
}
public void GoToInst()
{
SceneManager.LoadScene("Instructions");
}
public void GotoCredits()
{
SceneManager.LoadScene("Credits");
}
public void GotoStory()
{
SceneManager.LoadScene("Story");
SceneManager.LoadScene("MainMenuRedux");
}
public void doExitGame()
{
Expand All @@ -39,20 +26,5 @@ public bool IsOpen
return isOpen;
}
}
void Start()
{

}
// Update is called once per frame
void Update()
{
if (AwaitingConfirmation && Input.GetButton("PayRespects"))
{
AwaitingConfirmation = false;
};
if (AwaitingConfirmation == false)
{
SceneManager.LoadScene("MainMenu");
};
}
}
}

4 changes: 2 additions & 2 deletions ProjectSettings/InputManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ InputManager:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
positiveButton: enter
altNegativeButton:
altPositiveButton:
gravity: Infinity
Expand All @@ -106,7 +106,7 @@ InputManager:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
positiveButton: escape
altNegativeButton:
altPositiveButton:
gravity: Infinity
Expand Down
3 changes: 3 additions & 0 deletions RawArt/store.psd
Git LFS file not shown

0 comments on commit 3f0ba20

Please sign in to comment.