Commit 50fc2f2f authored by yu's avatar yu

1

parent 3b80e4df
......@@ -90,6 +90,10 @@ export class Player extends Role {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export class Robot extends Role {
......@@ -97,6 +101,10 @@ export class Robot extends Role {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export enum GAME_STATE {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment