ApplicationManager changes

OK, we now have a few changes to make in the ApplicationManager. Previously, we used the SetActive(true) call to turn our Skeeball machine on and off; this is less than optimal for working with the WorldAnchor system.

Instead, we will add two new functions: HideSkeeMachine and ShowSkeeMachine. Add everything you see from line 26 (the last line of the Start() function) to line 46:

Both of these functions will use a foreach loop to cycle through all of the child objects of the skee object. Each child it finds will then have SetActive set to true or false, depending on whether we want it on or off.

Next, move your cursor down to the Update() function and delete the lines selected in the following screenshot:

Replace them with ShowSkeeMachine().

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.202.187