added debug

This commit is contained in:
Cedric Beck
2024-12-08 11:57:30 +01:00
parent 9a07375fed
commit 98a6f2e689

View File

@@ -56,6 +56,7 @@ public void setState(GameStates newState){
if(this.state != null){ if(this.state != null){
this.state.exit(); this.state.exit();
} }
System.out.println("jetziger State:"+this.state + " new State:"+newState);
newState.enter(); newState.enter();
state = newState; state = newState;
} }