- Joined
- Apr 26, 2011
- Messages
- 403
Hi, I got a question :
if you remove units from game, do it automatic clean up any group it belong to ?
for example:
- CreepGroup is global variable
- Creep will add to this group when it spawn
- creep will remove from game after it die (eg, corpse will dispear after 1 second)
so, do I still need to remove dying creep from CreepGroup ?
or destory CreepGroup at the end of every round ?
or I don't have to because I already removed units from game, so it will automatic clean up any group it belong to ?
if you remove units from game, do it automatic clean up any group it belong to ?
for example:
- CreepGroup is global variable
- Creep will add to this group when it spawn
- creep will remove from game after it die (eg, corpse will dispear after 1 second)
so, do I still need to remove dying creep from CreepGroup ?
or destory CreepGroup at the end of every round ?
or I don't have to because I already removed units from game, so it will automatic clean up any group it belong to ?