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 /// Puts the game on a game over state
void gameOver() { void gameOver() {
gameRef.firstChild<Backboard>()?.gameOverMode(); gameRef.firstChild<Backboard>()?.gameOverMode();
gameRef.firstChild<CameraController>()?.focusOnBackboard(); gameRef.firstChild<CameraController>()?.focusOnBackboard();
} }
/// Puts the game on a playing state /// Puts the game on a playing state
void start() { void start() {
gameRef.firstChild<Backboard>()?.waitingMode(); gameRef.firstChild<Backboard>()?.waitingMode();
gameRef.firstChild<CameraController>()?.focusOnGame(); gameRef.firstChild<CameraController>()?.focusOnGame();
gameRef.overlays.remove(PinballGame.playButtonOverlay); gameRef.overlays.remove(PinballGame.playButtonOverlay);
} }
} }

Loading…
Cancel
Save