Commit 40024c90 authored by 邱旭's avatar 邱旭

11.FlppyBird-对象池

parent 28a2d99a
...@@ -146,7 +146,7 @@ class GameStage extends GameObject { ...@@ -146,7 +146,7 @@ class GameStage extends GameObject {
} }
async _gameStart() { async _gameStart() {
await this.reloadRes(); await this.preloadRes();
this.ready(); this.ready();
} }
...@@ -154,7 +154,7 @@ class GameStage extends GameObject { ...@@ -154,7 +154,7 @@ class GameStage extends GameObject {
* 预加载资源 * 预加载资源
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async reloadRes() { async preloadRes() {
} }
......
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