Game Development Reference
In-Depth Information
Figure 11-17.
The Laser layer states, re-wired for the new empty layer, Closed
To control the entry and exit from the armed state, you will create a Parameter. A Parameter is just a
variable that will be used for communication between scripts and the Mecanim state engine.
1.
In the lower left corner of the Animator view, click the plus sign to create a
new parameter and select Bool (Figure
11-18
).
Figure 11-18.
Creating a new Parameter
2.
Name it
Armed
(Figure
11-19
).
Figure 11-19.
The new Boolean Parameter