Remove stops tracking the given entity.
(basic ecs.BasicEntity)
| 125 | |
| 126 | // Remove stops tracking the given entity. |
| 127 | func (a *AnimationSystem) Remove(basic ecs.BasicEntity) { |
| 128 | if a.entities != nil { |
| 129 | delete(a.entities, basic.ID()) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | // Update advances the animations of all tracked entities. |
| 134 | func (a *AnimationSystem) Update(dt float32) { |