mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
Methode um mehrere Animationen im ShapesLayer zu starten
This commit is contained in:
@@ -116,6 +116,14 @@ public class ShapesLayer extends Layer {
|
||||
anim.start();
|
||||
}
|
||||
|
||||
|
||||
public void play( Animation<? extends Shape>... anims ) {
|
||||
for( Animation<? extends Shape> anim: anims ) {
|
||||
this.animations.add(anim);
|
||||
anim.start();
|
||||
}
|
||||
}
|
||||
|
||||
public <S extends Shape> void play( Animation<S> anim, int runtime ) {
|
||||
play(anim, runtime, Easing.DEFAULT_EASING);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user