Game Development Reference
In-Depth Information
Setting the empty node as the default state
The graph now features one animation per state for the character, but the states
are not connected; each state is isolated. Specifically, there's no logic that governs
the conditions by which one state moves to another. To fix this, create five new
triggers using the Parameters box in the bottom-left corner of the Mecanim window.
A trigger variable is a special Boolean type that Unity will automatically reset to
false ; every time it's made true , it allows behaviors to be initiated once, such as
state changes. The triggers, as we'll see, can be accessed in C# code.
 
Search WWH ::




Custom Search