Pārlūkot izejas kodu

飞行图标scale

wuwangdong 4 gadi atpakaļ
vecāks
revīzija
ed257755d4

+ 0 - 12
assets/resources/animation/Main.meta

@@ -1,12 +0,0 @@
-{
-  "ver": "1.1.2",
-  "uuid": "4e4c7e27-6fce-4142-bde1-d4e0cea5b72e",
-  "isBundle": false,
-  "bundleName": "",
-  "priority": 1,
-  "compressionType": {},
-  "optimizeHotUpdate": {},
-  "inlineSpriteFrames": {},
-  "isRemoteBundle": {},
-  "subMetas": {}
-}

+ 3 - 3
assets/script/game/game/AniControl.ts

@@ -238,13 +238,13 @@ export default class AniControl extends cc.Component {
             mk.fly.PlayCoinAnim(1, 5, this.flyBird_1.node, '', () => {
 
                 console.log('--');
-            }, 2);
+            }, -1,2);
         } else if (customEvenData == 'bird_2') {
             this.flyBirdFinished_2();
-            mk.fly.PlayCoinAnim(1, 5, this.flyBird_2.node, '', null, 2);
+            mk.fly.PlayCoinAnim(1, 5, this.flyBird_2.node, '', null, -1, 2);
         } else if (customEvenData == 'dog') {
             this.moveDogFinished();
-            mk.fly.PlayCoinAnim(1, 5, this.dogMove.node, '', null, 2);
+            mk.fly.PlayCoinAnim(1, 5, this.dogMove.node, '', null, -1 ,2);
         } else if (customEvenData == 'sheep') {
             mk.ui.openPanel('module/newOpenRedBag/newOpenRedBag');
             //mk.fly.PlayCoinAnim(1, 5, this.moveSheep.node);

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

@@ -47,7 +47,7 @@ return;
             this.refreshTime -= dt;
         }else{
             this.refreshTime = 10;
-            mk.fly.PlayCoinAnim(1, 3, this.fly_node, '', null,2);
+            mk.fly.PlayCoinAnim(1, 3, this.fly_node, '', null, -1 ,2);
         }
     }
 }

+ 2 - 2
assets/script/game/game/Game.ts

@@ -384,10 +384,10 @@ export default class Game extends cc.Component {
 
 
         let pos = this.node_taskHb.parent.convertToWorldSpaceAR(this.node_taskHb.getPosition());
-        mk.fly.PlayCoinAnim(1, 3, this.btn_product, pos, () => {
+        mk.fly.PlayCoinAnim(4, 3, this.btn_product, pos, () => {
 
             gData.gameData.init_task = true;
-        })
+        }, 1)
     }
 
     public doFlyExpAni(exp: number, startPos: cc.Node, data) {

+ 1 - 1
assets/script/game/module/redeem/RedeemNode.ts

@@ -151,7 +151,7 @@ export default class RedeemNode extends cc.Component {
 
             let type = parseInt(o.type);
             let count = parseInt(o.count);
-            mk.fly.PlayCoinAnim(type, 5, cc.v2(0, -300));
+            //mk.fly.PlayCoinAnim(type, 5, cc.v2(0, -300));
             switch (type) {
                 case RewardType.redBag:
                     gData.gameData.gameData.redMoney += count;

+ 6 - 1
assets/script/mk/system/FlySystem.ts

@@ -27,7 +27,12 @@ export default class FlySystem extends cc.Component {
             let sf = await mk.loader.load(url, cc.SpriteFrame);
             copyCoin.getComponent(cc.Sprite).spriteFrame = sf;
             copyCoin.setParent(this.node);
-            copyCoin.scale = mk.math.random(0.56, 0.84, false);
+            if(isScale != -1)
+            {
+                copyCoin.scale = isScale;
+            }else{
+                copyCoin.scale = mk.math.random(0.56, 0.84, false);
+            }  
             copyCoin.angle = mk.math.random(-45, 45, false);
             let dir = cc.v2(mk.math.random(-1, 1, false), mk.math.random(-1, 1, false));
             dir = dir.normalize();