Unity Mobile Game Development: Communication with Notification Center
Pluralsight
Course Summary
In this Unity tutorial, we'll learn various ways our scripts can access and talk to each other. Software required: Unity 3.4.
-
+
Course Description
In this Unity tutorial, we'll learn various ways our scripts can access and talk to each other. We'll begin the tutorial by learning about all the built-in methods Unity gives us to talk between scripts and between objects. We'll learn the how to find and access scripts on any game object using either direct connections, finding the object or the physics system. Finally we'll examine how a script can call methods on many other scripts using the messaging system in Unity. Each of these methods has limitations, so next we'll introduce the 3rd party script 'Notification Center' which acts as a central hub for easily communicating between multiple scripts. We'll learn how to post a new notification, how to observe a notification and how to pass data through the Notification Center. We'll wrap everything up by examining each of these methods and discuss which we should use in various situations. Understanding how our scripts will talk to each other lets us break our game into many script components, while still creating the functionality we need with the least amount of effort. Software required: Unity 3.4.
-
+
Course Syllabus
Introduction and Project Overview- 1m 5s
—Introduction and Project Overview 1m 5sUnity Mobile Game Development: Communication with Notification Center- 1h 24m
—Overview and Limitations of Built-in Communication Methods 9m 12s
—Component to Component Communication on the Same Object 9m 5s
—Communication on Other Objects Using the Inspector 8m 33s
—Finding Objects and Components at Run-time 8m 15s
—Collisions with Sendmessageupwards and Broadcastmessage 9m 51s
—Notification Center and the Publish Subscribe Design Pattern 8m 52s
—Sending and Receiving a Notification 7m 16s
—Having Multiple Scripts Receive a Notification 2m 52s
—Sending Data with the Notification Function 7m 8s
—How to Cast Our Notification Data with Other Variables 6m 22s
—When to Use Notification Center Vs. Other Methods 7m 12s