* Fix trying to add fire sprite node to existing component

This commit is contained in:
Aldin Duraki 2020-05-19 15:53:07 +02:00
parent b04bbe5036
commit de5929d070

View File

@ -119,9 +119,9 @@ class EntityManager {
position: (base.component(ofType: DefaultBaseComponent.self)?.spriteNode.position)! position: (base.component(ofType: DefaultBaseComponent.self)?.spriteNode.position)!
) )
) )
scene.addChild(base.component(ofType: TeamComponent.self)!.fire)
} }
base.changeOwnership = false base.changeOwnership = false
scene.addChild(base.component(ofType: TeamComponent.self)!.fire)
} }
} }
} }