revert 2 dicenow
This commit is contained in:
@@ -33,6 +33,7 @@ public class CardLayerHandler {
|
||||
private final Set<CardControl> selectableCards = new HashSet<>();
|
||||
|
||||
private BonusCard cardSelect = null;
|
||||
private boolean show = false;
|
||||
|
||||
public CardLayerHandler(MdgaApp app, Texture2D backTexture) {
|
||||
this.app = app;
|
||||
@@ -64,11 +65,14 @@ public void rollDice(int rollNum, Runnable actionAfter) {
|
||||
}
|
||||
|
||||
public void showDice() {
|
||||
if(show) return;
|
||||
show = true;
|
||||
cardLayer.addSpatial(diceControl.getSpatial());
|
||||
diceControl.spin();
|
||||
}
|
||||
|
||||
public void hideDice() {
|
||||
show = false;
|
||||
diceControl.hide();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user