Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Fixes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
keveleigh committed Jul 7, 2017
1 parent d8f5223 commit 78342ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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", () =>
Expand All @@ -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);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions Catch up Chapters/8-Finale/Assets/Scripts/SpeechManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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", () =>
Expand All @@ -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);
}
});

Expand Down

0 comments on commit 78342ba

Please sign in to comment.