v0.3.1: fixed traps fading in when they are already visible
This commit is contained in:
parent
9f02a93500
commit
0e49bb154b
|
@ -50,7 +50,7 @@ public abstract class Trap implements Bundlable {
|
|||
|
||||
public Trap reveal() {
|
||||
visible = true;
|
||||
if (sprite != null) {
|
||||
if (sprite != null && sprite.visible == false) {
|
||||
sprite.visible = true;
|
||||
sprite.alpha( 0 );
|
||||
sprite.parent.add( new AlphaTweener( sprite, 1, 0.6f));
|
||||
|
|
Loading…
Reference in New Issue
Block a user