()
| 39 | } |
| 40 | |
| 41 | public start() { |
| 42 | if (this.isRunning) return; |
| 43 | this.isRunning = true; |
| 44 | this.lastTime = performance.now(); |
| 45 | |
| 46 | // 设置当前场景到Core |
| 47 | Core.setScene(this.scene); |
| 48 | |
| 49 | this.scene.begin(); |
| 50 | this.loop(); |
| 51 | } |
| 52 | |
| 53 | public stop() { |
| 54 | this.isRunning = false; |