Skip to content

Commit

Permalink
fix: tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 committed Oct 4, 2024
1 parent 83aa58b commit ebf9b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scenes/KitScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const colors = {
type ControlState = 'idle' | 'readyToRecord' | 'recording' | 'playing';

export class KitScene extends Phaser.Scene {
private controls: {
private controls!: {
state: ControlState,
stop: ControlButton,
record: ControlButton,
Expand Down Expand Up @@ -149,13 +149,13 @@ export class KitScene extends Phaser.Scene {
});
stop.button.setInteractive()
.on('pointerdown', () => {
this.controls.state = 'idle';
if (this.controls.state === 'recording') {
stopRecording();
}
if (this.controls.state === 'playing') {
stopPlaying();
}
this.controls.state = 'idle';
this.updateControlsText();
});
play.button.setInteractive()
Expand Down

0 comments on commit ebf9b24

Please sign in to comment.