move demux into displaycontainer

This commit is contained in:
yugecin
2017-01-16 22:36:50 +01:00
parent 09dfc68f16
commit 3ba50ebe60
6 changed files with 143 additions and 206 deletions

View File

@@ -41,7 +41,7 @@ public class EmptyRedState implements OpsuState {
if (counter < 0) {
counter = 10000; // to prevent more calls to switch, as this will keep rendering until state transitioned
System.out.println(System.currentTimeMillis() - start);
displayContainer.demux.switchState(EmptyState.class);
displayContainer.switchState(EmptyState.class);
}
}

View File

@@ -39,7 +39,7 @@ public class EmptyState implements OpsuState {
counter -= delta;
if (counter < 0) {
counter = 10000; // to prevent more calls to switch, as this will keep rending until state transitioned
displayContainer.demux.switchState(EmptyRedState.class);
displayContainer.switchState(EmptyRedState.class);
}
}