Game Development Reference
In-Depth Information
3.
Rename Occluder in the Hierarchy to Occluder 2a Off .
4.
Duplicate the Occluder 2a Off object, and name it Occluder 2a On.
5.
Turn its State on by checking it in the Inspector.
6.
Move the Occluder 2a Off object back away from the gateway.
Before you can test the new code, you must make occluder objects for the other side of the gate.
1.
Duplicate the two occluder objects, and move them to the other side of the
gate, putting the On version close to the gate and the Off version farther from it.
You may have to adjust the spacing if you back through the gateway, and the area disappears before
the doors have finished closing.
2.
Name them Occluder 2b On and Occluder 2b Off (Figure 7-23 ).
Figure 7-23. The occluder boxes
3.
Change the “b” versions' New Area array element assignments as per
Figure 7-24 .
 
Search WWH ::




Custom Search