Game Development Reference
In-Depth Information
Figure 3-9. The NotificationsManager should be a Singleton object; there should be one instance of it in the scene
For this sample application, we'll set up a trivial scenario. Specifically, we'll create two additional
GameObjects in the scene. One object will be responsible for detecting user input, such as keyboard
button presses, and for notifying the NotificationsManager when such presses happen. The other
object will print a console message, whenever it receives a notification about keyboard input from
the NotificationsManager. Let's start by creating two additional GameObjects: namely, obj_Poster
and obj_Listener (see Figure 3-10 ).
 
Search WWH ::




Custom Search