ApplicationManager
Okay, this class has become a bit of a monster, but we have built upon the changes we made previously using the enum and switch to make the process a bit smarter and to plan ahead to add things such as keeping score and setting throw limits, as well as other things.
With that in mind, the script is too large to go over every line, so grab the version in the Chapter9 downloads package and copy it to your current version. We will spend some time going over the core changes and additions in the next chapter.
Once you have the code copied and saved, the application manager will suddenly look a bit less unruly. One problem that can arise with writing code for Unity is protection levels. Public variables have a slightly different ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access