// Author: smilelance
// From: http://blog.csdn.net/smilelance
1. animation Loop
Animation. wrapmode = wrapmode. Loop; // you can specify the loop mode for all animations.
Animation ["death"]. wrapmode = wrapmode. Once;// Set the Cycle Mode of a single Animation
2. animation Layers
Animation ["Death"]. Layer = 1;
The default value of layer is 0. A greater value indicates a higher priority.
3. animation Switching
Animation. crossfade ("idle ");
Animation. crossfade ("walk ");
Note that crossfade can only be switched before the animation of the same layer,
More advanced layer animations cannot be eliminated.
4. Switch to an animation frame.
Animation. Play ("die ");
// Animation ["die"]. Time = animation ["die"]. length; // specifies the animation playback time.
Animation ["die"]. normalizedtime = 1.0f; // 0 ~ Percentage of 1.0, 1 indicates the animation ends