(basic BasicEntity)
| 81 | } |
| 82 | |
| 83 | func (s *SystemAddRemove) Remove(basic BasicEntity) { |
| 84 | delete := -1 |
| 85 | for index, e := range s.entities { |
| 86 | if e.BasicEntity.ID() == basic.ID() { |
| 87 | delete = index |
| 88 | break |
| 89 | } |
| 90 | } |
| 91 | if delete >= 0 { |
| 92 | s.entities = append(s.entities[:delete], s.entities[delete+1:]...) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func (s *SystemAddRemove) Update(dt float32) {} |
| 97 |