Quantcast
Channel: Answers for "Problem with ArrayList and remove Gameobject C#"
Browsing all 4 articles
Browse latest View live

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

Answer by Capell

Thanks for your answer =)

View Article
Browsing all 4 articles
Browse latest View live


Latest Images