v0.8.1: added a safety sync check to buff vfx on character sprites
This commit is contained in:
parent
42f8aa77d2
commit
7e2f63edba
|
@ -342,7 +342,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||||
flashTime = FLASH_INTERVAL;
|
flashTime = FLASH_INTERVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add( State state ) {
|
public synchronized void add( State state ) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case BURNING:
|
case BURNING:
|
||||||
burning = emitter();
|
burning = emitter();
|
||||||
|
@ -396,7 +396,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove( State state ) {
|
public synchronized void remove( State state ) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case BURNING:
|
case BURNING:
|
||||||
if (burning != null) {
|
if (burning != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user