i have spawner, that periodically instanciates npcs. When they die they emit a signal.
i want to count how many enemies died. So i made node "gameStatsManager", preloaded packedScene of enemy and i try to connect signal "enemyDugDown" to function "printInfo", but when i start game it gives this error.
as i understood conect works with nodes that are already in the scene, instatiated. how can i specify signal connection to scenes that will be instatiated later in game?