revert 2 dicenow

This commit is contained in:
Cedric Beck
2024-12-09 04:42:55 +01:00
parent f954a24b32
commit 2dbdb1e17b
3 changed files with 7 additions and 3 deletions

View File

@@ -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();
}