AddAnimations registers all given animations.
(actions []*Animation)
| 64 | |
| 65 | // AddAnimations registers all given animations. |
| 66 | func (ac *AnimationComponent) AddAnimations(actions []*Animation) { |
| 67 | for _, action := range actions { |
| 68 | ac.AddAnimation(action) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // Cell returns the drawable for the current frame. |
| 73 | func (ac *AnimationComponent) Cell() Drawable { |