我的代码:
actor.addAction(Actions.sequence(
Actions.fadeOut(0.3f),
Actions.run(new Runnable(){
@Override
public void run() {
Gdx.app.log(TAG,"after dispear");
}
})));
actor.remove()
我发现该动作序列目前不会执行.如果我再次添加演员,它将.有人可以给我一个解释吗?
解决方法:
actor.addAction(Actions.sequence(
Actions.fadeOut(0.3f),
Actions.run(new Runnable(){
@Override
public void run() {
Gdx.app.log(TAG,"after dispear");
}
}),
Actions.removeActor()));
//actor.remove(); remove this line.
要删除动作链中的actor,请使用“ Actions.removeActor”