xx 1 년 전
부모
커밋
ea17737733
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      assets/script/game/box.ts
  2. 1 1
      assets/script/game/coin.ts
  3. 1 1
      assets/script/game/game.ts
  4. 1 1
      assets/script/game/wall.ts

+ 1 - 1
assets/script/game/box.ts

@@ -102,7 +102,7 @@ export class box extends base {
         if(this.mCar!=null){
             let box_world=this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
             let p = this.mCar.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
-            if(p.y<(this.mCar.node.position.y+1500)&&p.y>this.mCar.node.position.y&&!this.active_node){
+            if(p.y<(this.mCar.node.position.y+1800)&&p.y>this.mCar.node.position.y&&!this.active_node){
                 this.active_node = true
             }
 

+ 1 - 1
assets/script/game/coin.ts

@@ -72,7 +72,7 @@ export class coin extends base {
         if(this.mCar!=null){
             let box_world=this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
             let p = this.mCar.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
-            if(p.y<(this.mCar.node.position.y+1500)&&p.y>this.mCar.node.position.y&&!this.active_node){
+            if(p.y<(this.mCar.node.position.y+1800)&&p.y>this.mCar.node.position.y&&!this.active_node){
                 this.active_node = true
             }
 

+ 1 - 1
assets/script/game/game.ts

@@ -80,7 +80,7 @@ export class game extends Component {
         this.mIndex = 2;
         this.schedule(()=>{
             if(this.node.active){
-                if(this.content.children.length<=6){
+                if(this.content.children.length<=5){
                     this.mIndex++;
                     if(this.mIndex>=tools.levels.length){
                         this.mIndex = 1;

+ 1 - 1
assets/script/game/wall.ts

@@ -39,7 +39,7 @@ export class wall extends base {
         if(this.mCar!=null){
             let box_world=this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
             let p = this.mCar.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
-            if(p.y<(this.mCar.node.position.y+1500)&&p.y>this.mCar.node.position.y&&!this.active_node){
+            if(p.y<(this.mCar.node.position.y+1800)&&p.y>this.mCar.node.position.y&&!this.active_node){
                 this.active_node = true
             }