Fix Spy-Skill to show labels again

This commit is contained in:
Marcel Schwarz 2020-06-17 23:29:05 +02:00
parent 07e630881e
commit 71c01d589c

View File

@ -167,8 +167,9 @@ class EntityManager {
position: (entity.component(ofType: DefaultBaseComponent.self)?.spriteNode.position)!
)
)
if let fire = entity.component(ofType: TeamComponent.self)?.fire{
scene.addChild(fire)
if let spriteNode = entity.component(ofType: TeamComponent.self) {
scene.addChild(spriteNode.unitcountLabel)
scene.addChild(spriteNode.fire)
}
}