wuwangdong 4 lat temu
rodzic
commit
5fc69b1f64

+ 4 - 4
assets/script/before/main/FarmIcon.ts

@@ -88,10 +88,10 @@ export class FarmIcon extends cc.Component {
                     this.process.setData(this.data);
                     this.plantID = this.data.productID;
 
-                    let prefab = await mk.loader.load("game/prefab/ProductShow1", cc.Prefab);
-                    let item = cc.instantiate(prefab);
-                    item.name = 'hb';
-                    item.parent = this.node;
+                    // let prefab = await mk.loader.load("game/prefab/ProductShow1", cc.Prefab);
+                    // let item = cc.instantiate(prefab);
+                    // item.name = 'hb';
+                    // item.parent = this.node;
                     break;
                 case FarmState.Sick:
                     this.plantIcon.node.active = true;

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

@@ -133,7 +133,7 @@ export default class Game extends cc.Component {
         gData.gameData.checkTaskFinishUnLock();
         gData.gameData.maxProductToServer = true;
         gData.gameData.updateMaxProduct();
-        this.registerCallBack();
+        //this.registerCallBack();
 
         console.log("===[Jsbsystem 显示开屏广告================================")
         if (mk.ad.ifShowAd) {

BIN
build/jsb-link/assets/main/index.jsc


Plik diff jest za duży
+ 0 - 0
build/jsb-link/assets/resources/config.json


+ 14 - 46
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -9406,11 +9406,8 @@ this.setState(this.data.state);
 };
 e.prototype.setState = function(t) {
 return r(this, void 0, void 0, function() {
-var e, a;
-return c(this, function(o) {
-switch (o.label) {
-case 0:
-if (this.state == t) return [ 3, 8 ];
+return c(this, function() {
+if (this.state != t) {
 this._state = t;
 this.lockNode.active = !1;
 this.canUnlockNode.active = !1;
@@ -9419,72 +9416,44 @@ this.countDown.node.active = !1;
 this.process.node.active = !1;
 switch (this.state) {
 case s.FarmState.Lock:
-return [ 3, 1 ];
-
-case s.FarmState.CanUnlock:
-return [ 3, 2 ];
-
-case s.FarmState.Empty:
-return [ 3, 3 ];
-
-case s.FarmState.Growing:
-return [ 3, 4 ];
-
-case s.FarmState.Ripe:
-return [ 3, 5 ];
-
-case s.FarmState.Sick:
-return [ 3, 7 ];
-}
-return [ 3, 8 ];
-
-case 1:
 this.lockNode.active = !0;
-return [ 3, 8 ];
+break;
 
-case 2:
+case s.FarmState.CanUnlock:
 this.lockNode.active = !0;
 this.canUnlockNode.active = !0;
-return [ 3, 8 ];
+break;
 
-case 3:
+case s.FarmState.Empty:
 this.idleAni && 0 == this.idleAni.active && (this.idleAni.active = !0);
-return [ 3, 8 ];
+break;
 
-case 4:
+case s.FarmState.Growing:
 this.countDown.node.active = !0;
 this.process.node.active = !0;
 this.countDown.setData(this.data);
 this.process.setData(this.data);
 this.idleAni && 1 == this.idleAni.active && (this.idleAni.active = !1);
-return [ 3, 8 ];
+break;
 
-case 5:
+case s.FarmState.Ripe:
 this.plantIcon.node.active = !0;
 this.countDown.node.active = !0;
 this.process.node.active = !0;
 this.countDown.setState(1);
 this.process.setData(this.data);
 this.plantID = this.data.productID;
-return [ 4, mk.loader.load("game/prefab/ProductShow1", cc.Prefab) ];
-
-case 6:
-e = o.sent();
-(a = cc.instantiate(e)).name = "hb";
-a.parent = this.node;
-return [ 3, 8 ];
+break;
 
-case 7:
+case s.FarmState.Sick:
 this.plantIcon.node.active = !0;
 this.countDown.node.active = !0;
 this.process.node.active = !0;
 this.countDown.setState(0);
 this.process.setData(this.data);
-return [ 3, 8 ];
-
-case 8:
-return [ 2 ];
 }
+}
+return [ 2 ];
 });
 });
 };
@@ -14427,7 +14396,6 @@ this.span = 6e4 * gData.gameData.ProductionRecovery;
 gData.gameData.checkTaskFinishUnLock();
 gData.gameData.maxProductToServer = !0;
 gData.gameData.updateMaxProduct();
-this.registerCallBack();
 console.log("===[Jsbsystem 显示开屏广告================================");
 mk.ad.ifShowAd && Math.random() <= gData.adData.getPerByEcpm(u.RateConfig.RC_splash) && l.default.showSplash();
 this.initRefreshEvent();

+ 2 - 2
packages-hot-update/cfg.json

@@ -12,7 +12,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/"
     ],
-    "buildTime": 1635496837350,
-    "genTime": 1635496837350,
+    "buildTime": 1635575003155,
+    "genTime": 1635575003155,
     "genVersion": null
 }

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików