Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I have the same problem. I assume it's because the tween gets removed from the
Hashtable and so, when tweens.Count get re-evaluated each time around the for
loop, the loop will ultimately exit prematurely.
Original comment by stewmur...@gmail.com
on 13 Mar 2013 at 8:42
My iTween.Stop code for the version from 4/16/2013:
public static void Stop ()
{
while (tweens.Count > 0) {
Hashtable currentTween = (Hashtable)tweens [tweens.Count - 1];
GameObject target = (GameObject)currentTween ["target"];
Stop (target);
}
}
I haven't done any testing to speak of other than for my specific case, but I'd
be very surprised if this doesn't work for anything that the forward-iterating
code did work for.
Original comment by jesdisci...@gmail.com
on 31 Jul 2013 at 9:10
Oh, I should also note that the backward-iterating for loop above is broken for
GameObjects with multiple iTween components, as they will all be removed in the
same iteration of the for loop.
Original comment by jesdisci...@gmail.com
on 31 Jul 2013 at 9:14
Original issue reported on code.google.com by
oswaldo....@gmail.com
on 10 Jan 2013 at 5:25