例如,当我尝试用this.game.physics.startSystem(Phaser.Physics.ARCADE);初始化物理系统时,我会收到The property 'startSystem'does not exist on value of type 'Phaser.Physics.Arcade.World'.这可能是我的phaser.d.ts的问题(尽管它是最新的.)?
static readonly gameStateMap: Map<GameState, Phaser.State> = new Map([ [GameState.BREAKOUT, new BreakoutState() as Phaser.State]为什么我需要将它们转换为Phaser.State因为它们都直接扩展了Phaser.State,所以我想我应该可以把