Skip to content

Commit

Permalink
basic scene switching
Browse files Browse the repository at this point in the history
  • Loading branch information
mimetaur committed May 9, 2018
1 parent e0162bf commit e452b80
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Assets/Icons/ProbabilitySpacesIcon512px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions Assets/Icons/ProbabilitySpacesIcon512px.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/Scenes/Spherescape.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/Scenes/Default.unity → Assets/Scenes/Start.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
12 changes: 12 additions & 0 deletions Assets/Scenes/UndulatingPlain.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Assets/Scripts/GoToIntroOnInput.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GoToIntroOnInput : MonoBehaviour
{

// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
SceneManager.LoadScene("Start");
}
}
}
13 changes: 13 additions & 0 deletions Assets/Scripts/GoToIntroOnInput.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Assets/Scripts/HideCursorOnPlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class HideCursorOnPlay : MonoBehaviour
void Start()
{
Cursor.visible = false;

}

}
12 changes: 12 additions & 0 deletions Assets/Scripts/ShowCursorOnPlay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShowCursorOnPlay : MonoBehaviour
{

void Start()
{
Cursor.visible = true;
}
}
13 changes: 13 additions & 0 deletions Assets/Scripts/ShowCursorOnPlay.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ProjectSettings/ProjectSettings.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e452b80

Please sign in to comment.