diff options
Diffstat (limited to 'app/systems/death.rb')
| -rw-r--r-- | app/systems/death.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/systems/death.rb b/app/systems/death.rb index d9cd792..7c10212 100644 --- a/app/systems/death.rb +++ b/app/systems/death.rb @@ -4,11 +4,9 @@ FF::Scn::BoidRules.add( if hp.health <= 0 component_hash = hp.entities[0].components.clone component_hash.each_pair do |manager, manager_array| - next if manager.equal?(FF::Cmp::SingletonCamera) next if manager.equal?(FF::Cmp::Hp) - next if manager.equal?(FF::Cmp::DebugVectorArrow) manager_array.each do |component| - # unless singleton + next if component.respond_to?(:singleton) component.delete end end |
