()
| 36 | } |
| 37 | } |
| 38 | start() { |
| 39 | if (!this.show) return; |
| 40 | this.component = this.game.scene.addComponent(new StatsComponent()); |
| 41 | this.stats = Stats(this.style); |
| 42 | this.component.stats = this.stats; |
| 43 | this.stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom |
| 44 | document.body.appendChild(this.stats.dom); |
| 45 | } |
| 46 | lateUpdate() { |
| 47 | if (!this.show) return; |
| 48 | this.stats && this.stats.end(this.hook); |
nothing calls this directly
no test coverage detected