AddAnimation registers an animation under its name, making it available through SelectAnimationByName.
(action *Animation)
| 59 | // AddAnimation registers an animation under its name, making it available |
| 60 | // through SelectAnimationByName. |
| 61 | func (ac *AnimationComponent) AddAnimation(action *Animation) { |
| 62 | ac.Animations[action.Name] = action |
| 63 | } |
| 64 | |
| 65 | // AddAnimations registers all given animations. |
| 66 | func (ac *AnimationComponent) AddAnimations(actions []*Animation) { |
no outgoing calls