|
@@ -28,20 +28,20 @@ export class pool extends Component {
|
|
|
this.wall_pool.put(instantiate(this.wall_pf));
|
|
|
}
|
|
|
|
|
|
- this.schedule(()=>{
|
|
|
- if(this.box_pool.size()<this.pool_num){
|
|
|
- let box = instantiate(this.box_pf);
|
|
|
- this.box_pool.put(box);
|
|
|
- }
|
|
|
- if(this.coin_pool.size()<this.pool_num){
|
|
|
- const coin = instantiate(this.coin_pf);
|
|
|
- this.coin_pool.put(coin);
|
|
|
- }
|
|
|
- if(this.wall_pool.size()<this.pool_num){
|
|
|
- const wall = instantiate(this.wall_pf);
|
|
|
- this.wall_pool.put(wall);
|
|
|
- }
|
|
|
- },0.5)
|
|
|
+ // this.schedule(()=>{
|
|
|
+ // if(this.box_pool.size()<this.pool_num){
|
|
|
+ // let box = instantiate(this.box_pf);
|
|
|
+ // this.box_pool.put(box);
|
|
|
+ // }
|
|
|
+ // if(this.coin_pool.size()<this.pool_num){
|
|
|
+ // const coin = instantiate(this.coin_pf);
|
|
|
+ // this.coin_pool.put(coin);
|
|
|
+ // }
|
|
|
+ // if(this.wall_pool.size()<this.pool_num){
|
|
|
+ // const wall = instantiate(this.wall_pf);
|
|
|
+ // this.wall_pool.put(wall);
|
|
|
+ // }
|
|
|
+ // },0.5)
|
|
|
}
|
|
|
}
|
|
|
|