AddDefaultAnimation adds an animation which is used when no other animation is playing.
(action *Animation)
| 52 | |
| 53 | // AddDefaultAnimation adds an animation which is used when no other animation is playing. |
| 54 | func (ac *AnimationComponent) AddDefaultAnimation(action *Animation) { |
| 55 | ac.AddAnimation(action) |
| 56 | ac.def = action |
| 57 | } |
| 58 | |
| 59 | // AddAnimation registers an animation under its name, making it available |
| 60 | // through SelectAnimationByName. |