-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
2,249 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using TMPro; | ||
|
||
namespace SEE.Controls | ||
{ | ||
/// <summary> | ||
/// Handles the actions in the | ||
/// settings canvas. | ||
/// </summary> | ||
public class SettingsMenue : MonoBehaviour | ||
{ | ||
//The text box, which will display the text | ||
public TMP_Text keybindingsText; | ||
|
||
//The settings panel which will be activated | ||
public GameObject settings; | ||
|
||
// Start is called before the first frame update | ||
//Sets the text of the textbox | ||
void Start() | ||
{ | ||
keybindingsText.text = KeyBindings.ShowBindings(); | ||
} | ||
|
||
// Update is called once per frame | ||
//Activates the settings panel with the esc button | ||
void Update() | ||
{ | ||
if(SEEInput.ActivateSettings()) | ||
{ | ||
settings.SetActive(true); | ||
} | ||
} | ||
|
||
//When this method is called, the application will be terminated | ||
public void ExitGame() | ||
{ | ||
#if UNITY_EDITOR | ||
UnityEditor.EditorApplication.isPlaying = false; | ||
#else | ||
Application.Quit(); | ||
#endif | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fileFormatVersion: 2 | ||
guid: ecd882add9e68744a83afa8a7c94ba90 | ||
MonoImporter: | ||
externalObjects: {} | ||
serializedVersion: 2 | ||
defaultReferences: [] | ||
executionOrder: 0 | ||
icon: {instanceID: 0} | ||
userData: | ||
assetBundleName: | ||
assetBundleVariant: |
Oops, something went wrong.