Create onFinish Animation hook
This commit is contained in:
@@ -30,6 +30,8 @@ public interface Animation extends Placeable, Movable, Renderable, Updatable {
|
||||
|
||||
void onAdd(Layer layer);
|
||||
|
||||
void onFinish(Layer layer);
|
||||
|
||||
void finish();
|
||||
|
||||
boolean finished();
|
||||
|
||||
@@ -174,6 +174,11 @@ public abstract class AnimationDelegate implements Animation {
|
||||
animation.onAdd(layer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish(Layer layer) {
|
||||
animation.onFinish(layer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
animation.finish();
|
||||
|
||||
Reference in New Issue
Block a user