Quantcast
Channel: Answers for "Problem with ArrayList and remove Gameobject C#"
Browsing index pages (4 articles)

Answer by Capell

Thanks for your answer =)

View Article


Answer by whydoidoit

Yeah that's a fun one - a foreach can't iterate a list that changes - it breaks the enumerator. Add: var deleteEnemies : ArrayList = new ArrayList(); Just before the foreach. Then rather than...

View Article


Answer by Capell

Thanks for your answer =)

View Article

Answer by whydoidoit

Yeah that's a fun one - a foreach can't iterate a list that changes - it breaks the enumerator. Add: var deleteEnemies : ArrayList = new ArrayList(); Just before the foreach. Then rather than...

View Article
Browsing index pages (4 articles)


Latest Images