Game Development Reference
In-Depth Information
Figure 11-11. Creating the Hat Node Mask
8.
Next, double-click the Gnome Controller in the Project view to open the
Animator component.
9.
In the upper left corner, click the plus sign to the right of Layers to create a
new Layer.
10.
Name it Laser , and select the Hat Node Mask as its Mask (Figure 11-12 ).
Figure 11-12. The new Laser layer
When you created the new layer, the view changed to it instead of the Base layer. Now you can load
the three hat-related states into the layer.
1.
Expand the GardenGnome asset in the Project view so you can see the
animation clips that you set up in Chapter 6.
2.
Drag the Gnome arming, Gnome armed, and Gnome disarming clips into the
view to create their states.
3.
Create transitions between them (Figure 11-13 ).
 
Search WWH ::




Custom Search