Skip to content

Commit 523d13c

Browse files
author
András Velvárt
committed
Fixed small typos and other small tweaks.
1 parent 06ff24c commit 523d13c

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Assets/HoloToolkit/Utilities/Scenes/HeadsetAdjustment.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Prefab:
363363
objectReference: {fileID: 0}
364364
- target: {fileID: 1000013198843976, guid: bfdc7f60d7205c84f82a4806a5352d60, type: 2}
365365
propertyPath: m_Name
366-
value: InstructionsTest
366+
value: InstructionsText
367367
objectReference: {fileID: 0}
368368
- target: {fileID: 102000010767390410, guid: bfdc7f60d7205c84f82a4806a5352d60,
369369
type: 2}

Assets/HoloToolkit/Utilities/Scripts/HeadsetAdjustment.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ public class HeadsetAdjustment : MonoBehaviour, IInputClickHandler, ISpeechHandl
1212

1313
public void OnInputClicked(InputClickedEventData eventData)
1414
{
15-
Debug.Log("Clicked");
1615
GotoNextScene();
1716
}
1817

1918
private void GotoNextScene()
2019
{
20+
InputManager.Instance.RemoveGlobalListener(this.gameObject);
2121
if (!string.IsNullOrEmpty(NextSceneName))
2222
{
2323
SceneManager.LoadScene(NextSceneName);
@@ -35,12 +35,8 @@ public void OnSpeechKeywordRecognized(SpeechKeywordRecognizedEventData eventData
3535
}
3636

3737
// Use this for initialization
38-
void Start () {
38+
private void Start ()
39+
{
3940
InputManager.Instance.AddGlobalListener(this.gameObject);
40-
}
41-
42-
// Update is called once per frame
43-
void Update () {
44-
45-
}
41+
}
4642
}

0 commit comments

Comments
 (0)