Can anyone tell me, why I can't change the animation on a sprite.UID in a foreach-loop?
For each sprite order by sprite.UID ascending
If sprite.UID = 1 then
sprite.animation = "Something"
text.text = "This is written"
The sprite animation doesn't change, but the text is written.. Why?