Lance Gray wrote:
dynamic_cast instead of
but I got a code first dynamic cast, so I got a lot of crash for dynamic cast.
I changed to code with static_cast 2 month ago.
my foreach loop is use a same CCArray.
CCArray* TargetList got all target class like bullet, hero, enemy
so Totally TargetList is just like God Array.
may I make a new CCArray like bulletList, HeroList EnemyList?
is it good way to divide a list for each target?