setupLevel3 Prefab will be activated when the user presses the
popup_Level3Start button. It will initialize the NPCs for the level, place them in random locations in the world, and set up the state tracking logic that determines if the player achieves success. Perform the following steps to use the
_level2, and rename it
setupLevel3. Duplicate the
SetupMissionTwoscript from mission two, and rename the duplicate to
SetupMissionThree. Place the duplicate in the folder named
Chapter9to keep your assets organized.
MonoDevelop, change the class declaration to
SetupMissionThreeso that it matches ...