|
@@ -87,7 +87,11 @@ export default class GameController extends cc.Component {
|
|
|
let prefab:cc.Prefab=this.loader.GetContent(cc.Prefab) as cc.Prefab;
|
|
|
let node:cc.Node=cc.instantiate(prefab);
|
|
|
this.player.node.addChild(node);
|
|
|
-
|
|
|
+ //喷气粒子
|
|
|
+ this.player.particle=cc.find("ParticleRoot",node);
|
|
|
+ if(this.player.particle!=null){
|
|
|
+ this.player.particle.active=false;
|
|
|
+ }
|
|
|
|
|
|
this.loader.RemoveAllEvent();
|
|
|
this.loader.AddEvent(JLoader.EVENT_COMPLETE,this,this.BackgroundLoaded);
|
|
@@ -113,6 +117,9 @@ export default class GameController extends cc.Component {
|
|
|
* 开始游戏
|
|
|
*/
|
|
|
StartGame():void{
|
|
|
+ if(this.player.particle!=null){
|
|
|
+ this.player.particle.active=false;
|
|
|
+ }
|
|
|
this.isGameOver=false;
|
|
|
this.isDrop=false;
|
|
|
this.inCirclePolygon.Reset();
|