refactor
This commit is contained in:
@@ -9,7 +9,7 @@ export class RoomManager extends Component {
|
||||
init({ id, players }: { id: number, players: Array<{ id: number, nickname: string }> }) {
|
||||
this.id = id
|
||||
const label = this.getComponent(Label)
|
||||
label.string = `房间id:${id},当前人数:${players.length}`
|
||||
label.string = `房间id:${id},当前人数:${players.length}`
|
||||
this.node.active = true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user