You can also use an instance of an event class. That is more efficient than polling with a Sleep() - though sometimes polling is the way to go depending on the situation.
- call
Await()on the event in any of the places that you want to wait for it - then call
Signal()on it to wake it up.
An example of it being used is in the Space Inside / Escape Room’s cinematic_character_device.