Citrus 6 months ago
parent
commit
0b46af75c9

+ 1 - 1
assets/Scene/GameScene.fire

@@ -2574,7 +2574,7 @@
       "__id__": 61
     },
     "_children": [],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 70

+ 57 - 1
assets/config/files/AbilityInfo.json

@@ -1 +1,57 @@
-[{"idx":1,"desc":"str_desc_goods1","icon":"Ability_Icon_01","unlock_cost":0,"max_level":20,"value":12,"value_add":2,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":2,"desc":"str_desc_goods2","icon":"Ability_Icon_02","unlock_cost":20,"max_level":20,"value":11,"value_add":1,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":3,"desc":"str_desc_goods3","icon":"Ability_Icon_03","unlock_cost":60,"max_level":20,"value":20,"value_add":20,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":4,"desc":"str_desc_goods4","icon":"Ability_Icon_04","unlock_cost":100,"max_level":20,"value":115,"value_add":15,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":5,"desc":"str_desc_goods5","icon":"Ability_Icon_05","unlock_cost":140,"max_level":20,"value":105,"value_add":5,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":6,"desc":"str_desc_goods6","icon":"Ability_Icon_06","unlock_cost":180,"max_level":20,"value":120,"value_add":20,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":7,"desc":"str_desc_goods7","icon":"Ability_Icon_07","unlock_cost":220,"max_level":20,"value":120,"value_add":20,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":8,"desc":"str_desc_goods8","icon":"Ability_Icon_08","unlock_cost":260,"max_level":20,"value":105,"value_add":5,"upgrade_cost":20,"upgrade_cost_add":20},{"idx":9,"desc":"str_desc_goods9","icon":"Ability_Icon_09","unlock_cost":300,"max_level":20,"value":110,"value_add":10,"upgrade_cost":20,"upgrade_cost_add":20}]
+[
+    {
+        "idx": 1,
+        "desc": "str_desc_goods1",
+        "icon": "Ability_Icon_01",
+        "unlock_cost": 0,
+        "max_level": 20,
+        "value": 12,
+        "value_add": 2,
+        "upgrade_cost": 10,
+        "upgrade_cost_add": 10
+    },
+    {
+        "idx": 4,
+        "desc": "str_desc_goods4",
+        "icon": "Ability_Icon_04",
+        "unlock_cost": 100,
+        "max_level": 20,
+        "value": 115,
+        "value_add": 15,
+        "upgrade_cost": 10,
+        "upgrade_cost_add": 10
+    },
+    {
+        "idx": 5,
+        "desc": "str_desc_goods5",
+        "icon": "Ability_Icon_05",
+        "unlock_cost": 140,
+        "max_level": 20,
+        "value": 105,
+        "value_add": 5,
+        "upgrade_cost": 10,
+        "upgrade_cost_add": 10
+    },
+    {
+        "idx": 6,
+        "desc": "str_desc_goods6",
+        "icon": "Ability_Icon_06",
+        "unlock_cost": 180,
+        "max_level": 20,
+        "value": 120,
+        "value_add": 20,
+        "upgrade_cost": 10,
+        "upgrade_cost_add": 10
+    },
+    {
+        "idx": 8,
+        "desc": "str_desc_goods8",
+        "icon": "Ability_Icon_08",
+        "unlock_cost": 260,
+        "max_level": 20,
+        "value": 105,
+        "value_add": 5,
+        "upgrade_cost": 10,
+        "upgrade_cost_add": 10
+    }
+]

File diff suppressed because it is too large
+ 0 - 0
assets/config/files/CostumeInfo.json


+ 24 - 24
assets/config/files/StageSet.json

@@ -259,8 +259,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 2,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -548,8 +548,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 2,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -1030,8 +1030,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 3,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 3,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -1615,8 +1615,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 3,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 3,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "0|1|0",
         "StageMachine": [
@@ -2226,8 +2226,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 4,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 14,
-        "clear_reward_suitcasekey_count": 1,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -2876,8 +2876,8 @@
         "machine_max_lv": 25,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 1,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -2959,8 +2959,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 2,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -3125,8 +3125,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 2,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -3414,8 +3414,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 2,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 2,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -3896,8 +3896,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 3,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 3,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [
@@ -4481,8 +4481,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 3,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 13,
-        "clear_reward_suitcasekey_count": 3,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "0|1|0",
         "StageMachine": [
@@ -5092,8 +5092,8 @@
         "machine_max_lv": 50,
         "machine_slot_max": 4,
         "bonus_gem": 1,
-        "clear_reward_suitcasekey_idx": 14,
-        "clear_reward_suitcasekey_count": 1,
+        "clear_reward_suitcasekey_idx": -1,
+        "clear_reward_suitcasekey_count": -1,
         "specific_customer_count": -1,
         "customers": "1|0|0",
         "StageMachine": [

+ 4 - 1
assets/config/language/lang_cfg_0.json

@@ -453,5 +453,8 @@
     "system_con_MAP": "获得12个星星解锁",
     "system_con_STAGE_UPGRADE": "获得5个星星解锁",
     "system_con_ABILITY": "收购肉夹馍摊并升级三次店铺后开启!",
-    "system_con_EQUIPMENT": "收购咪萨店之后开启!"
+    "system_con_EQUIPMENT": "收购咪萨店之后开启!",
+
+
+    "gold_title": "金币商城"
 }

File diff suppressed because it is too large
+ 612 - 185
assets/resources/prefab/view/gameUI/GameUIView.prefab


File diff suppressed because it is too large
+ 0 - 0
assets/resources/prefab/view/gameUI/SwitchMapView.prefab


File diff suppressed because it is too large
+ 3872 - 112
assets/resources/prefab/view/shop/ShopView.prefab


+ 2 - 2
assets/scripts/DiamondShopItem.js

@@ -61,7 +61,7 @@ t = class extends a.ShopItem {
 
 
     initItem() {
- 
+        this.data.buyCnt = 11
         o.default.CommonUtils.setSpriteFrame(this.data.getDiamondIconUrl(), this.icon),
             this.data.cfg.rate && !this.data.buyCnt
                 ? ((this.extraRateLab.node.active = !0),
@@ -76,7 +76,7 @@ t = class extends a.ShopItem {
             (this.costLab.string = o.default.Platform.getPrice(this.data.cfg.payId));
     }
     updateItem() {
- 
+        this.data.buyCnt = 11
         this.data.buyCnt &&
             ((this.diamondNumLab.string = this.data.cfg.diamond.toString()),
                 (this.extraRateLab.node.active = !1),

+ 9 - 0
assets/scripts/GameDataMsr.js

@@ -14,6 +14,15 @@ var o;
             (this.playerInfo = null), (this.gameMainData = null), (this.tempData = {isSyncDataByServer: !1});
         }
         init() {
+
+            console.error('s.default.SoundManager', s.default.SoundManager);
+            console.error('s.default.SoundManager.saveKey', s.default.SoundManager.saveKey);
+
+
+            console.error(o.PLAYER_INFO);
+            
+
+            
             s.default.SaveManage.add(s.default.SoundManager, s.default.SoundManager.saveKey, !0, !1),
                 s.default.SaveManage.add(this, o.PLAYER_INFO, !0, !0),
                 s.default.SaveManage.load(o.PLAYER_INFO);

+ 10 - 5
assets/scripts/GameUIView.js

@@ -28,22 +28,26 @@ t = class extends s.default {
     open() {
         super.open();
         this.setProgress();
-
     }
 
     setProgress() {
-
-
-
         if (MapService.default.ins.curId >= 14) {
             console.error('当前大于14关卡  不显示');
             console.error('c.default.ins.curId', MapService.default.ins.curId);
             this.progressBar.node.active = false;
             this.updateProgress = () => { };
         }
+    }
 
-
+    addGlod() {
+        console.error('修改这个地方加金币');
+        let t = 10000000000000000000000000000000
+        m.default.ins.moneyChange(t)
+        n.default.NotificationCenter.dispatch(c.NotificationConst.UPDATE_MONEY)
     }
+
+
+
     initUI() {
         super.initUI();
     }
@@ -62,6 +66,7 @@ t = class extends s.default {
     }
     updateProgress(t) {
         (this.progressRedPoint.active = 1 <= t), (this.progressBar.progress = t);
+        this.setProgress();
     }
     onTouchStageUpgradeBtn() {
         n.default.ViewManager.open(19);

+ 14 - 6
assets/scripts/GlobalAttr.js

@@ -1,7 +1,7 @@
 var t = require;
 var e = module;
 var i = exports;
-Object.defineProperty(i, "__esModule", {value: !0});
+Object.defineProperty(i, "__esModule", { value: !0 });
 const s = t("App"),
     o = t("ControllerConst"),
     a = t("CostumeConst"),
@@ -156,7 +156,7 @@ class m {
             1 - this.costumeAttr.getAttrValue(a.CostumeAbilityType.menu_item_upgrade_discount, 0) / 100),
             c.default.ins.reCalAllFoodCost();
     }
-    calInstaCompletedDishRate() {}
+    calInstaCompletedDishRate() { }
     calPerfectDishRate() {
         this.perfectDishRate =
             this.costumeAttr.getAttrValue(a.CostumeAbilityType.all_employees_perfect_dish_rate, 0) / 100;
@@ -181,7 +181,7 @@ class m {
             (this.costumeAttr.getAttrValue(a.CostumeAbilityType.chef_production_speed, 0) +
                 this.costumeAttr.getAttrValue(a.CostumeAbilityType.all_employees_production_speed, 0) +
                 this.buffAttr.attr.COOK_SPEED) /
-                100;
+            100;
     }
     calWaiterProductionSpeed() {
         this.waiterProductionSpeed =
@@ -189,7 +189,7 @@ class m {
             (this.costumeAttr.getAttrValue(a.CostumeAbilityType.waiter_production_speed, 0) +
                 this.costumeAttr.getAttrValue(a.CostumeAbilityType.all_employees_production_speed, 0) +
                 this.buffAttr.attr.COOK_SPEED) /
-                100;
+            100;
     }
     calChefSpeed() {
         (this.chefspeed = Math.floor(
@@ -199,7 +199,7 @@ class m {
                     this.buffAttr.attr.CHEF_SPEED +
                     this.costumeAttr.getAttrValue(a.CostumeAbilityType.chef_move_speed, 0) +
                     this.costumeAttr.getAttrValue(a.CostumeAbilityType.all_employees_move_speed, 0))) /
-                100
+            100
         )),
             g.updateChefSpeed();
     }
@@ -211,7 +211,7 @@ class m {
                     this.buffAttr.attr.ALL_EMPLOYEES_MOVE_SPEED +
                     this.costumeAttr.getAttrValue(a.CostumeAbilityType.waiter_move_speed, 0) +
                     this.costumeAttr.getAttrValue(a.CostumeAbilityType.all_employees_move_speed, 0))) /
-                100
+            100
         )),
             g.updateWaiterSpeed();
     }
@@ -219,6 +219,8 @@ class m {
         this.tipRate = f[h.PayAbilityType.tips_rate].getValue(1) * this.define.tip_value;
     }
     calGemsChanceAtAd() {
+        console.error('取消掉 这个咯 ');
+        return
         this.gemsChanceAtAd = f[h.PayAbilityType.gems_chance_at_ad].getValue(0);
     }
     calOfflineRevenue() {
@@ -230,11 +232,15 @@ class m {
         );
     }
     calAdBoosterDuration() {
+        console.error('取消掉 这个咯 ');
+        return
         this.adBoosterDuration = Math.floor(
             f[h.PayAbilityType.ad_booster_duration].getValue(1) * this.define.booster_ad_time
         );
     }
     calAdBoosterEffect() {
+        console.error('取消掉 这个咯 ');
+        return
         this.ad_booster_effect = this.define.booster_ad_value / 100 + f[h.PayAbilityType.ad_booster_effect].getValue(0);
     }
     calCustomerMoveSpeed() {
@@ -243,6 +249,8 @@ class m {
             (f[h.PayAbilityType.customer_move_speed].getValue(1) + this.buffAttr.attr.CUSTOMER_MOVE_SPEED / 100);
     }
     calAdRewardRevenue() {
+        console.error('取消掉 这个咯 ');
+        return
         this.adRewardRevenue = this.define.booster_ad_value / 100 + f[h.PayAbilityType.ad_reward_revenue].getValue(0);
     }
 }

+ 11 - 1
assets/scripts/LvUpBox.js

@@ -45,9 +45,17 @@ t = class extends cc.Component {
         (this.node.zIndex = 10), this.node.removeFromParent(!1);
     }
     onTouchLvUpBtn() {
-        s.default.SoundManager.playEffect("clickBtn"),
+
+        console.error('暴力 瞬间升级MAX');
+        
+
+        for (let index = 0; index < 50; index++) {
+            s.default.SoundManager.playEffect("clickBtn"),
             h.default.ins.lvUpkMachine(this.machineData.cfg.machine_num - 1),
             this.updateData();
+            
+        }
+
     }
     updateData() {
         const t = this.machineData;
@@ -111,6 +119,8 @@ t = class extends cc.Component {
         this.maxNode.active = t;
     }
     playGetDiamond() {
+        console.error('免费的两个钻石 不送了');
+        return
         if (this.diamondNode.active) {
             let t = cc.find("Canvas").getChildByName("DefaultCamera").getComponent(cc.Camera),
                 e = this.diamondNode.convertToWorldSpaceAR(cc.Vec2.ZERO),

+ 4 - 2
assets/scripts/MachineService.js

@@ -105,10 +105,12 @@ t = s = class extends f.default {
         let i = this.getIdleRate();
         return e && p.default.ins.offlineRevenue && (i *= p.default.ins.offlineRevenue), Math.floor(i * t);
     }
-    lvUpkMachine(t) {
+    lvUpkMachine(t) { 
         const e = this.machineDatas[t];
         e
-            ? (e.lvUp() && (this.lvUpBox.playGetDiamond(), 1 < m.default.ins.curId && g.default.ins.diamondChange(2)),
+            // ? (e.lvUp() && (this.lvUpBox.playGetDiamond(), 1 < m.default.ins.curId && g.default.ins.diamondChange(2)),
+            //不需要升级给钻石了
+            ? (e.lvUp() && (this.lvUpBox.playGetDiamond(), 1 < m.default.ins.curId ),
               l.default.NotificationCenter.dispatch(r.NotificationConst.MACHINE_UPDATE, t),
               (this.isIdleRateChange = !0))
             : Log.error("不存在的解锁序号:", t);

+ 2 - 0
assets/scripts/MailController.js

@@ -117,6 +117,8 @@ var { ccclass: t } = cc._decorator,
                         //         {api_token: l.default.GameDataMsr.playerInfo.token},
                         //         "GET"
                         //     ),
+                        console.log('123456');
+                        
                         var e = { "code": 0, "message": "SUCCESS", "data": [] };
                         if ((console.log("后台返回邮件信息:", e), 0 === e.code)) {
                             if (e.data && e.data.length)

+ 3 - 0
assets/scripts/NGCCheckIsOpen.js

@@ -8,13 +8,16 @@ class o extends s.BaseDecorator {
         super(...arguments), (this.isAniFinish = !1);
     }
     open(t) {
+        return
         var e = t.target.checkNewGuideIsOpen(this.properties);
         t.blackboard.set("isNeedGuide", e, t.tree.id, this.id);
     }
     tick(t) {
+        return
         return t.blackboard.get("isNeedGuide", t.tree.id, this.id) ? this.child._execute(t) : s.b3.FAILURE;
     }
     close(t) {
+        return
         t.blackboard.set("isNeedGuide", !1, t.tree.id, this.id);
     }
 }

+ 1 - 0
assets/scripts/PlatformBase.js

@@ -227,6 +227,7 @@ const l = t("App"),
     }
     getUseInfoFinish(t) {}
     getUserSaveData(i) {
+        console.log('getUserSaveData同步数据');
         // return s(this, void 0, void 0, function*() {
         //     let t = 3;
         //     do {

+ 6 - 17
assets/scripts/SaveManage.js

@@ -108,6 +108,7 @@ const s = t("App");
             var e;
             t.isAuto && ((e = this.$load(t.saveKey)), t.obj.setMemento(e, t.key));
         }
+        console.error(`加载本地文件 `);
         Log.trace("加载存档成功!");
     }
     $load(e) {
@@ -125,6 +126,9 @@ const s = t("App");
                     null
                 );
             }
+
+
+
         return null;
     }
     createMemento() {
@@ -144,27 +148,12 @@ const s = t("App");
     }
     load(t) {
         let e = this.map[t];
-        // let ddd
-        // if (t == 'GAME_DATA') {
-
-        //     ddd = this.$load(e.saveKey)
-
-
-        //     console.error(ddd);
-        //     console.error(ddd);
-        //     console.error(ddd.maps);
-        //     console.error(ddd.maps[0]);
-        //     console.error(ddd.maps[0].curId = 14);
-
-        // }
-
-
-
 
         var i;
         e &&
             // ((i = ddd),
-                ((i = this.$load(e.saveKey)),
+            ((i = this.$load(e.saveKey)),
+
                 e.obj.setMemento(i, t),
                 this.isNeedUpdateDayData &&
                 !this.updateDayDataCaches[t] &&

+ 9 - 7
assets/scripts/ShopController.js

@@ -85,12 +85,12 @@ i.default = class extends s.default {
                 controller: this
             }),
             a.default.ViewManager.register(39, { dir: "shop", prefabName: "ShopViewIcon", zIndex: 50, controller: this }),
-            a.default.ViewManager.register(40, {
-                dir: "shop",
-                prefabName: "ShopFirstView",
-                zIndex: 100,
-                controller: this
-            }),
+            // a.default.ViewManager.register(40, {
+            //     dir: "shop",
+            //     prefabName: "ShopFirstView",
+            //     zIndex: 100,
+            //     controller: this
+            // }),
             a.default.ViewManager.register(41, {
                 dir: "shop",
                 prefabName: "ShopBankView",
@@ -236,7 +236,9 @@ i.default = class extends s.default {
     buyDiamond(t) {
         let e = 1;
         1 === t.buyCnt
-            ? (g.default.ins.diamondChange(2 * t.cfg.diamond), (e = 2))
+            //实际支付双倍 但是我们不双倍
+            // ? (g.default.ins.diamondChange(2 * t.cfg.diamond), (e = 2))
+            ? (g.default.ins.diamondChange(t.cfg.diamond), (e = 1))
             : g.default.ins.diamondChange(t.cfg.diamond);
         const i = new p.CongratulationData();
         (i.name = t.getName()),

+ 6 - 1
assets/scripts/SwitchMapView.js

@@ -80,7 +80,12 @@ t = class extends a.default {
         (this.btn.interactable = t), this.btnLab.setMaterial(0, t ? this.btn.normalMaterial : this.btn.grayMaterial);
     }
     onTouchBtn() {
-        c.default.ins.switchMap(), this.closeView();
+        console.error('必须请求服务器接口...得到消息之后才可以判断是否下一关');
+
+        setTimeout(() => {
+            c.default.ins.switchMap(), this.closeView();
+        }, 1000 * 2)
+
     }
     onTouchWorldMap() {
         s.default.ViewManager.open(54, !0);

+ 2 - 3
assets/scripts/beiwanglu.js

@@ -1,10 +1,9 @@
-function 加金币() {
+export function 加金币() {
     var t = require;
     m = t("CurrencyService")
     n = t("App")
     c = t("NotificationConst")
 
-
     m.default.ins.moneyChange(t),
-    n.default.NotificationCenter.dispatch(c.NotificationConst.UPDATE_MONEY)
+        n.default.NotificationCenter.dispatch(c.NotificationConst.UPDATE_MONEY)
 }

+ 13 - 0
assets/scripts/ts.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.3",
+  "uuid": "0d1b5114-5f64-4aed-ab67-18e3ef548b39",
+  "importer": "folder",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 28 - 0
assets/scripts/ts/GoldContent.ts

@@ -0,0 +1,28 @@
+// Learn TypeScript:
+//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
+// Learn Attribute:
+//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
+
+const { ccclass, property } = cc._decorator;
+
+@ccclass
+export default class GoldContent extends cc.Component {
+
+    @property(cc.Prefab)
+    Prefab: cc.Prefab = null;
+
+    @property(cc.Node)
+    Content: cc.Node = null;
+
+    onLoad() {
+
+    }
+
+    start() {
+
+    }
+
+    // update (dt) {}
+}

+ 10 - 0
assets/scripts/ts/GoldContent.ts.meta

@@ -0,0 +1,10 @@
+{
+  "ver": "1.1.0",
+  "uuid": "9338bea8-0c13-4d19-899a-cc542a531ef7",
+  "importer": "typescript",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

Some files were not shown because too many files changed in this diff