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