From the course: Unity 5: Build a Character Dialogue System

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Finish the Panel Manager

Finish the Panel Manager - Unity Tutorial

From the course: Unity 5: Build a Character Dialogue System

Start my 1-month free trial

Finish the Panel Manager

- [Narrator] In order to gray out the character that's not talking, we need to have different configuration options. But first, since our panel manager is a manager script, we need to add it to the master manager list. I'm going to close some of these tabs in my MonoDevelop, it's getting a little crowded. I'm going to go back to my MasterManager script at the top, add another required component, type of PanelManager. Underneath the animationManager variable, going to add another one, public static PanelManager named panelManager, with a public get and a private set. And initialize the variable, panelManager = GetComponent<PanelManager>, and then I'm going to add it to the list, _managerList.Add (panelManager). Beautiful, now whenever we boot up our scene, our PanelManager's boot sequence will fire, which will then cascade down into initializing both our panels to start working. Back in the PanelManager script, make some room underneath the InitializePanels method. We're going to have…

Contents