Game Development Reference
In-Depth Information
Figure 11-13. The Laser layer states
The default transitions, if you remember, are set to Exit Time. As soon as the clip is nearly finished,
the transition to the next state is triggered.
4.
Switch to the 2 x 3 Layout, or tear off the Animator view so you can see it and
the Game view at the same time. (You may have to open the Animator view
again and click the expand arrow to open the Laser layer.)
5.
Click Play, and select the GardenGnome (the child of the Gnomatic Garden
Defender) in the Hierarchy view so you can watch the states' progress bars.
(The GardenGnome holds the Animator component.)
The progress can be seen in the Animator looping through the states (Figure 11-14 ), but to see the
layer in action in the viewport you will have to manually set the layer Weight to 1 to fully override
the Base layer's current states.
Search WWH ::




Custom Search