From the course: Unity 5: Build a Character Dialogue System
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Add player input - Unity Tutorial
From the course: Unity 5: Build a Character Dialogue System
Add player input
- [Narrator] Before we dive into the player input, I noticed an error when running the scene at this point. In Unity, click Play and go to your console window. We have a NullReference exception here and this is a bit of a weird one. It's happening because we have been making changes to the MasterManager script after it's already been attached to the SceneController. If you select your SceneController object, you'll notice that we only have the Atlas Manager as a required component. That should throw up a red flag for you, because our Master Manager actually has three Manager required components. To fix this, select the SceneController and delete the Master Manager component and the Atlas Manager component. And, while we're at it, let's delete the Test component as well because that script is no longer needed. Now all we have to do is re-drag the Master Manager and drop onto the SceneController. And we have all our Managers intact. Run the scene again to make sure we're good. Now that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.