I am not exactly sure how monkey.list works, but from what I understand each time one uses "EachIn" it creates a new Enumerator<T>. As I do not want that to happen -> Is it possible to allocate one global Enumerator for 1 list:
Global SpriteEnumerator := SpriteList.ObjectEnumerator() and then can I use this Enumerator without having to update it (when adding or removing nodes to this specific list)?
Local sprite:Sprite
While SpriteEnumerator.HasNext()
sprite = SpriteEnumerator.NextObject()
sprite.DoSomething()
End
|