From 78342ba4182415e97aad6b22a42a951bb28d7d32 Mon Sep 17 00:00:00 2001 From: Kurtis Date: Fri, 7 Jul 2017 16:18:56 -0700 Subject: [PATCH] Fixes #37 --- .../Assets/Scripts/GazeGestureManager.cs | 2 +- .../Assets/Scripts/SpeechManager.cs | 4 ++-- .../8-Finale/Assets/Scripts/GazeGestureManager.cs | 2 +- Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/GazeGestureManager.cs b/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/GazeGestureManager.cs index 1ddd257e..3149a605 100644 --- a/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/GazeGestureManager.cs +++ b/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/GazeGestureManager.cs @@ -22,7 +22,7 @@ void Start() // Send an OnSelect message to the focused object and its ancestors. if (FocusedObject != null) { - FocusedObject.SendMessageUpwards("OnSelect"); + FocusedObject.SendMessageUpwards("OnSelect", SendMessageOptions.DontRequireReceiver); } }; recognizer.StartCapturingGestures(); diff --git a/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/SpeechManager.cs b/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/SpeechManager.cs index a251336b..890820a7 100644 --- a/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/SpeechManager.cs +++ b/Catch up Chapters/7-SpatialMapping-Completed/Assets/Scripts/SpeechManager.cs @@ -14,7 +14,7 @@ void Start() keywords.Add("Reset world", () => { // Call the OnReset method on every descendant object. - this.BroadcastMessage("OnReset"); + this.BroadcastMessage("OnReset", SendMessageOptions.DontRequireReceiver); }); keywords.Add("Drop Sphere", () => @@ -23,7 +23,7 @@ void Start() if (focusObject != null) { // Call the OnDrop method on just the focused object. - focusObject.SendMessage("OnDrop"); + focusObject.SendMessage("OnDrop", SendMessageOptions.DontRequireReceiver); } }); diff --git a/Catch up Chapters/8-Finale/Assets/Scripts/GazeGestureManager.cs b/Catch up Chapters/8-Finale/Assets/Scripts/GazeGestureManager.cs index 1ddd257e..3149a605 100644 --- a/Catch up Chapters/8-Finale/Assets/Scripts/GazeGestureManager.cs +++ b/Catch up Chapters/8-Finale/Assets/Scripts/GazeGestureManager.cs @@ -22,7 +22,7 @@ void Start() // Send an OnSelect message to the focused object and its ancestors. if (FocusedObject != null) { - FocusedObject.SendMessageUpwards("OnSelect"); + FocusedObject.SendMessageUpwards("OnSelect", SendMessageOptions.DontRequireReceiver); } }; recognizer.StartCapturingGestures(); diff --git a/Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs b/Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs index a251336b..890820a7 100644 --- a/Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs +++ b/Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs @@ -14,7 +14,7 @@ void Start() keywords.Add("Reset world", () => { // Call the OnReset method on every descendant object. - this.BroadcastMessage("OnReset"); + this.BroadcastMessage("OnReset", SendMessageOptions.DontRequireReceiver); }); keywords.Add("Drop Sphere", () => @@ -23,7 +23,7 @@ void Start() if (focusObject != null) { // Call the OnDrop method on just the focused object. - focusObject.SendMessage("OnDrop"); + focusObject.SendMessage("OnDrop", SendMessageOptions.DontRequireReceiver); } });