#unitytips If you change the contents of a list while iterating through it you will most likely run into problems.
A solution is to use ToArray to create a copy and iterate through it instead. Keep in mind that this will use some memory!#gamedev #csharp pic.twitter.com/t8lu3KQxY8
— Binary Impact (@BinaryImpactG) October 4, 2022