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

Unlock the full course today

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

Set up the Master Manager

Set up the Master Manager - Unity Tutorial

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

Start my 1-month free trial

Set up the Master Manager

- [Male Instructor] Ideally we want to design our architecture to support easy access to all of our managers' scripts. We also want to be able to call up the boot sequence on each of those scripts when the scene starts. This is where our new Master Manager class comes in. It's going to do all that and it'll serve as a great scalable, efficient way to build out our more complex features. Back in Unity, in our scripts folder, we're going to right-click, create, C# script, and name it Master Manager. Go ahead and double-click that and open in up in MonoDevelop. Delete the start and update functions. We won't be using those in this script either. The first thing we need to do is add a require component. If you've never used one of these before, it's just telling the Unity editor to add whatever we require if this script is attached to a game object. So, for instance, if we were to require an animator component for this script, whatever object the script was attached to, would…

Contents