Add error in animation logixc
This commit is contained in:
@@ -12,7 +12,8 @@ public ActionControl(Runnable runnable){
|
|||||||
|
|
||||||
|
|
||||||
protected void action(){
|
protected void action(){
|
||||||
if(runnable == null) throw new RuntimeException("runnable is null");
|
if(null != runnable) {
|
||||||
else runnable.run();
|
runnable.run();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -831,7 +831,7 @@ private void throwBomb(UUID uuid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void throwMatrix(UUID uuid) {
|
private void throwMatrix(UUID uuid) {
|
||||||
//app.getAcousticHandler().playSound(MdgaSound.MATRIX);
|
app.getAcousticHandler().playSound(MdgaSound.MATRIX);
|
||||||
Spatial piece = pieces.get(uuid).getSpatial();
|
Spatial piece = pieces.get(uuid).getSpatial();
|
||||||
piece.addControl(new MatrixAnimation(app, radarPos,()-> {
|
piece.addControl(new MatrixAnimation(app, radarPos,()-> {
|
||||||
piece.addControl(new FadeControl(1,1,0,
|
piece.addControl(new FadeControl(1,1,0,
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public WaitingPieceState(ClientState parent, ClientGameLogic logic) {
|
|||||||
@Override
|
@Override
|
||||||
public void enter() {
|
public void enter() {
|
||||||
moveablePiece = null;
|
moveablePiece = null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user