SelectAnimationByName sets the current animation. The name must be registered.
(name string)
| 39 | // SelectAnimationByName sets the current animation. The name must be |
| 40 | // registered. |
| 41 | func (ac *AnimationComponent) SelectAnimationByName(name string) { |
| 42 | ac.CurrentAnimation = ac.Animations[name] |
| 43 | ac.index = 0 |
| 44 | } |
| 45 | |
| 46 | // SelectAnimationByAction sets the current animation. |
| 47 | // An nil action value selects the default animation. |
no outgoing calls