`ent` is the data from the editor, so it is probably just a plain object. But the name of the variable is confusing, so maybe we can rename it to `entData`? 

The `ig.game.spawnEntity` method returns the actual entity that was created and spawned. Use that value in the instanceof check.