pull/160/head
Erick Zanardo 4 years ago
parent a0a0b23de9
commit 787f56187e

@ -22,14 +22,14 @@ class GameController extends Component
/// Puts the game on a game over state
void gameOver() {
gameRef.firstChild<Backboard>()?.gameOverMode();
gameRef.firstChild<CameraController>()?.focusOnBackboard();
gameRef.firstChild<Backboard>()?.gameOverMode();
gameRef.firstChild<CameraController>()?.focusOnBackboard();
}
/// Puts the game on a playing state
void start() {
gameRef.firstChild<Backboard>()?.waitingMode();
gameRef.firstChild<CameraController>()?.focusOnGame();
gameRef.overlays.remove(PinballGame.playButtonOverlay);
gameRef.firstChild<Backboard>()?.waitingMode();
gameRef.firstChild<CameraController>()?.focusOnGame();
gameRef.overlays.remove(PinballGame.playButtonOverlay);
}
}

Loading…
Cancel
Save