v0.6.2: fixed some effects persisting when character sprites are destroyed
This commit is contained in:
parent
becd3167da
commit
ff6d3f93ff
|
@ -498,6 +498,10 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
|||
emo.killAndErase();
|
||||
}
|
||||
|
||||
for( State s : State.values()){
|
||||
remove(s);
|
||||
}
|
||||
|
||||
if (health != null){
|
||||
health.killAndErase();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user