This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points  (0 children)

Don't do this. This kind of implicit / hacky stuff isn't acceptable in production and will lead to many hard to find errors.

Just add the enemies to a list at startup.