Ver Fonte

失败 重开

woso_javan há 1 mês atrás
pai
commit
4cf585716a
19 ficheiros alterados com 1820 adições e 143 exclusões
  1. 5 29
      assets/module_aliens/Prefabs/UI/Result/UI_BattleResult_Impl.ts
  2. 1 0
      assets/module_aliens/Prefabs/UI/TimeExpan.meta
  3. 13 0
      assets/module_aliens/Prefabs/UI/TimeExpan/Layout_TimeExpan.ts
  4. 1 0
      assets/module_aliens/Prefabs/UI/TimeExpan/Layout_TimeExpan.ts.meta
  5. 1611 0
      assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan.prefab
  6. 13 0
      assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan.prefab.meta
  7. 55 0
      assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts
  8. 1 0
      assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts.meta
  9. 37 3
      assets/module_aliens/Script/Manager/TimerMgr.ts
  10. 5 0
      assets/module_aliens/Script/Manager/UserMgr.ts
  11. 4 1
      assets/scripts/UIDef.ts
  12. 16 1
      temp/programming/packer-driver/targets/editor/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js
  13. 0 0
      temp/programming/packer-driver/targets/editor/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js.map
  14. 21 54
      temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js
  15. 0 0
      temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map
  16. 16 1
      temp/programming/packer-driver/targets/preview/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js
  17. 0 0
      temp/programming/packer-driver/targets/preview/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js.map
  18. 21 54
      temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js
  19. 0 0
      temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map

+ 5 - 29
assets/module_aliens/Prefabs/UI/Result/UI_BattleResult_Impl.ts

@@ -7,6 +7,8 @@ import { GtagMgr, GtagType } from "db://assets/core_tgx/base/GtagMgr";
 import { GameEvent } from "../../../Script/Enum/GameEvent";
 import { LevelManager } from "../../../Script/Manager/LevelMgr";
 import { AliensAudioMgr } from "../../../Script/Manager/CarUnscrewAudioMgr";
+import { UserManager } from "../../../Script/Manager/UserMgr";
+import { TimerMgr } from "../../../Script/Manager/TimerMgr";
 
 export class UI_BattleResult_Impl extends UI_BattleResult {
     rewardBase: number = 0; //基础奖励
@@ -37,38 +39,12 @@ export class UI_BattleResult_Impl extends UI_BattleResult {
 
         layout.winNode.active = this.win;
         layout.loseNode.active = !this.win;
-
-        if (!this.win) {
-            this.rainEffect();
-        }
-
-        this.rotationLight();
-
-        const { level } = LevelManager.instance.levelModel;
-        GtagMgr.inst.doGameDot(GtagType.level_end, { level }); //上报关卡结束
-    }
-
-    //下雨效果播放
-    private rainEffect(): void {
-        let layout = this.layout as Layout_BattleResult;
-    }
-
-    private rotationLight(): void {
-        if (!this.win) return;
-        const { light } = this.layout;
-        light.eulerAngles = v3(0, 0, 0);
-        tween(light)
-            .repeatForever(
-                tween()
-                    .to(5, { eulerAngles: new Vec3(0, 0, 360) }, { easing: 'linear' })
-                    .call(() => {
-                        light!.eulerAngles = new Vec3(0, 0, 0);
-                    })
-            )
-            .start();
     }
 
     private emitEvent(): void {
+        TimerMgr.inst.reset();
+        UserManager.instance.reset();
+        
         if (this.win) {
             LevelManager.instance.levelUpHandler();
         } else {

+ 1 - 0
assets/module_aliens/Prefabs/UI/TimeExpan.meta

@@ -0,0 +1 @@
+{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"a85be3d9-70a9-4901-8e0b-0e1331f555d6","files":[],"subMetas":{},"userData":{}}

+ 13 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/Layout_TimeExpan.ts

@@ -0,0 +1,13 @@
+import { _decorator, Button, Component, Node } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('Layout_TimeExpan')
+export class Layout_TimeExpan extends Component {
+    @property(Button)
+    btn_get: Button = null;
+
+    @property(Button)
+    btn_back: Button = null;
+}
+
+

+ 1 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/Layout_TimeExpan.ts.meta

@@ -0,0 +1 @@
+{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"fa6a2ec7-db0b-49ff-9cc7-57e712361699","files":[],"subMetas":{},"userData":{}}

+ 1611 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan.prefab

@@ -0,0 +1,1611 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "UI_TimeExpan",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "UI_TimeExpan",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 10
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 60
+      },
+      {
+        "__id__": 62
+      },
+      {
+        "__id__": 64
+      },
+      {
+        "__id__": 66
+      }
+    ],
+    "_prefab": {
+      "__id__": 68
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Black",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 360,
+      "y": 360,
+      "z": 0
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 2.111111111111111,
+      "height": 4.444444444444445
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b5LKhr8DxLVagqpQQZe4YM"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 100
+    },
+    "_spriteFrame": {
+      "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9eBNKQuiFNmrSaOBe1tgXb"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 8
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 100,
+    "_originalHeight": 100,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "66CYhL4G1P6LXntucvBVFN"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "53MLuV7DpOwoZaVzCFbOQ7",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Open",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 43
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 57
+      }
+    ],
+    "_prefab": {
+      "__id__": 59
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 180,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Frame",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 12
+      },
+      {
+        "__id__": 14
+      }
+    ],
+    "_prefab": {
+      "__id__": 16
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 13
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 553,
+      "height": 641
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "88l0fnhkZFRoWqktYKeLcU"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 15
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "192d535d-c826-4eb0-b479-13815c58d810@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 2,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": false,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3b1nrjTQpFrrdjDl7jU+lq"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f7J9joBOBJzbx1wTGM/rPH",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 18
+      },
+      {
+        "__id__": 20
+      }
+    ],
+    "_prefab": {
+      "__id__": 22
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 17
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 19
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 142.2265625,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "26ctRWXQ9D+bWevjzLc9Z3"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 17
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 21
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 233,
+      "g": 8,
+      "b": 8,
+      "a": 255
+    },
+    "_string": "加时 冲!",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e7WgeoEhpOcJeePEm9W11e"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "830SmfpP5Dzqo+OoFYCz4c",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "BtGet",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 24
+      },
+      {
+        "__id__": 30
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 36
+      },
+      {
+        "__id__": 38
+      },
+      {
+        "__id__": 40
+      }
+    ],
+    "_prefab": {
+      "__id__": 42
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -440,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Sprite",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 23
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 25
+      },
+      {
+        "__id__": 27
+      }
+    ],
+    "_prefab": {
+      "__id__": 29
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -60,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 0.7,
+      "y": 0.7,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 26
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 103,
+      "height": 64
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "5d+pWG85RO1J1DIYA09LDW"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 28
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "6dea7fec-abc3-4141-8406-d9253583ef54@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 2,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c7N42uHrNFMKH4pmG/0mvd"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "aahim1UhJCqKB2aszyC5dh",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 23
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 31
+      },
+      {
+        "__id__": 33
+      }
+    ],
+    "_prefab": {
+      "__id__": 35
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 47.789,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 30
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 32
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 113.203125,
+      "height": 75.6
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8a6rDixLxKoIrdS6vcHiaz"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 30
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 34
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "GET",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 60,
+    "_fontSize": 60,
+    "_fontFamily": "Arial",
+    "_lineHeight": 60,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": {
+      "__uuid__": "23a47957-4ba6-41f7-999f-a5fbf8a48aed",
+      "__expectedType__": "cc.TTFFont"
+    },
+    "_isSystemFontUsed": false,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8d4J19yClD6IQKgBMYFRxb"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "d1Zdl5mjhLkqc1v3r9z5j9",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 37
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 364,
+      "height": 93
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "1dzZBsNEJJaJOLIRahefUg"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 39
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "c06f682e-00a9-4c6e-ac62-8cec264b7a89@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 2,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "84K/+mXQ5HGL4Tdryqim0L"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 41
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.8,
+    "_target": {
+      "__id__": 23
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "46yRK0TAxBPL6duv73uPlZ"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "9cQvI8C2NH+IV3xmauaFX2",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "BtNo",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 44
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 50
+      },
+      {
+        "__id__": 52
+      },
+      {
+        "__id__": 54
+      }
+    ],
+    "_prefab": {
+      "__id__": 56
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -585,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label-001",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 43
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 45
+      },
+      {
+        "__id__": 47
+      }
+    ],
+    "_prefab": {
+      "__id__": 49
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 44
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 46
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 280,
+      "height": 75.6
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d4OgTyfKlO/KbeG/zR7RtP"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 44
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 48
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "NO,THANKS",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 47,
+    "_fontSize": 50,
+    "_fontFamily": "Arial",
+    "_lineHeight": 50,
+    "_overflow": 2,
+    "_enableWrapText": false,
+    "_font": {
+      "__uuid__": "23a47957-4ba6-41f7-999f-a5fbf8a48aed",
+      "__expectedType__": "cc.TTFFont"
+    },
+    "_isSystemFontUsed": false,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "60vr0HLfRDaLAlKMP3e22y"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "1eb1YI7G9PTYrnsX+uTisy",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 43
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 51
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 364,
+      "height": 92
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8fkC2YetZNKoK9xKhgUEWJ"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 43
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 53
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "334a74d8-7bce-4846-9413-02e9966e406a@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 2,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "cc0v3mbw9OFK4dSmpJ5Xss"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 43
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 55
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.8,
+    "_target": {
+      "__id__": 43
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a6QBDvro9BYYoItxCD36DB"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f9jRd2s1xBIrB7n/ylxjo7",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 58
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 600,
+      "height": 700
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7461tNOlFAJ7He+dwawlLa"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "5arR2/Pu9MIIPIzQ0RjNcr",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 61
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 760,
+      "height": 1600
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c6A02kMwNC9ItLi08rBs/K"
+  },
+  {
+    "__type__": "cc.BlockInputEvents",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 63
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "59ep0rGyRJe6TW5sOWdMIj"
+  },
+  {
+    "__type__": "bcfe4/4KSpNzoVcKH/PLlmr",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 65
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "caADCP7dNAWZ12lmDWpBds"
+  },
+  {
+    "__type__": "fa6a27H2wtJ/5zHV+cSNhaZ",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 67
+    },
+    "btn_get": {
+      "__id__": 40
+    },
+    "btn_back": {
+      "__id__": 54
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e72jZ6nwhMdaGVd+Pat+pA"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c46/YsCPVOJYA4mWEpNYRx",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "7d719727-ff7f-4ee8-81ed-4ee61f407f45",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "UI_TimeExpan"
+  }
+}

+ 55 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts

@@ -0,0 +1,55 @@
+import { _decorator, Component, Node } from 'cc';
+import { GameUILayers } from "../../../../scripts/GameUILayers";
+import { UI_TimeExpan } from "../../../../scripts/UIDef";
+import { tgxModuleContext } from 'db://assets/core_tgx/tgx';
+import { Layout_TimeExpan } from './Layout_TimeExpan';
+import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
+import { GlobalConfig } from 'db://assets/start/Config/GlobalConfig';
+import { AdvertMgr } from 'db://assets/core_tgx/base/ad/AdvertMgr';
+import { UserManager } from '../../../Script/Manager/UserMgr';
+import { GameEvent } from '../../../Script/Enum/GameEvent';
+import { TimerMgr } from '../../../Script/Manager/TimerMgr';
+const { ccclass, property } = _decorator;
+
+@ccclass('UI_TimeExpan_Impl')
+export class UI_TimeExpan_Impl extends UI_TimeExpan {
+    
+    private _addTime: number = 1;
+
+    constructor() {
+        super('Prefabs/UI/TimeExpan/UI_TimeExpan', GameUILayers.POPUP, Layout_TimeExpan);
+    }
+
+    public getRes(): [] {
+        return [];
+    }
+
+    protected onCreated(): void {
+        this._addTime = 5;
+
+        let layout = this.layout as Layout_TimeExpan;
+        this.onButtonEvent(layout.btn_get, () => {
+            if (!GlobalConfig.isDebug) {
+                AdvertMgr.instance.showReawardVideo(() => {
+                    this.addTime();
+                })
+            } else {
+                this.addTime();
+            }
+        });
+        this.onButtonEvent(layout.btn_back, () => {
+            this.hide();
+        });
+    }
+
+    //加时
+    private addTime() {
+        TimerMgr.inst.countDownTime = this._addTime;
+        TimerMgr.inst.startCountdown();
+        this.hide();
+    }
+}
+
+tgxModuleContext.attachImplClass(UI_TimeExpan, UI_TimeExpan_Impl);
+
+

+ 1 - 0
assets/module_aliens/Prefabs/UI/TimeExpan/UI_TimeExpan_Impl.ts.meta

@@ -0,0 +1 @@
+{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"f0f940d1-6d37-48c7-88a4-2ff306447c30","files":[],"subMetas":{},"userData":{}}

+ 37 - 3
assets/module_aliens/Script/Manager/TimerMgr.ts

@@ -2,7 +2,8 @@ import { assetManager, instantiate, Prefab, Node, UITransform, Vec3, Vec2, view,
 
 import { GameUtil } from "../GameUtil";
 import { AliensGlobalInstance } from "../AliensGlobalInstance";
-
+import { tgxUIMgr } from "db://assets/core_tgx/tgx";
+import { UI_TimeExpan,UI_BattleResult } from "db://assets/scripts/UIDef";
 
 /** 时间管理器*/
 export class TimerMgr {
@@ -18,9 +19,18 @@ export class TimerMgr {
         return this.Instance;
     }
 
-    public countDownTime: number = 1;
+    private _countDownTime: number = 1;
+    public get countDownTime(): number {
+        return this._countDownTime;
+    }
+    public set countDownTime(value: number) {
+        this._countDownTime = value;
+    }
+
     private timerId: number = 0;
     private isPaused: boolean = false;  // 添加暂停标志
+    //加时次数
+    private addTimeCount: number = 0;
 
     constructor() {
     }
@@ -37,6 +47,13 @@ export class TimerMgr {
                 this.countDownTime--;
                 if (this.countDownTime <= 0) {
                     this.stopCountdown();
+
+                    if(this.addTimeCount < 1){
+                        this.showCountdownPopup();
+                    }else{
+                        this.showResultPopup();
+                    }
+                    this.addTimeCount++;
                 }
                 this.upateLbTime();
             }
@@ -84,12 +101,29 @@ export class TimerMgr {
 
     }
 
+    //倒计时弹窗
+    private showCountdownPopup(): void {
+        const revive = tgxUIMgr.inst.isShowing(UI_TimeExpan);
+        if (!revive) {
+            tgxUIMgr.inst.showUI(UI_TimeExpan);
+        }
+    }
+
+    //结算弹窗
+    private showResultPopup(): void {
+        const revive = tgxUIMgr.inst.isShowing(UI_BattleResult);
+        if (!revive) {
+            tgxUIMgr.inst.showUI(UI_BattleResult);
+        }
+    }
+
     // 销毁时清理
     public reset(): void {
         this.stopCountdown();
         this.isPaused = false;  // 重置暂停状态
         Scheduler.enableForTarget(this);
         director.getScheduler().unscheduleAllForTarget(this);
-        this.countDownTime = 5; //测试
+        this.addTimeCount = 0;
+        this.countDownTime = 3; //测试
     }
 }

+ 5 - 0
assets/module_aliens/Script/Manager/UserMgr.ts

@@ -94,4 +94,9 @@ export class UserManager {
         return false;
     }
 
+    reset(): void {
+       this.userModel.freeScreenShotCount = 0;
+       this.userModel.radarFreeCount = 0; 
+    }
+
 }

+ 4 - 1
assets/scripts/UIDef.ts

@@ -8,6 +8,7 @@ export class UI_Setting extends tgxUIController { }
 export class UI_BattleResult extends tgxUIController { }
 export class UI_BattleGambit extends tgxUIController { }
 export class UI_PowerUp extends tgxUIController { }
+export class UI_TimeExpan extends tgxUIController { }
 export class UI_TopInfo extends tgxUIController { }
 export class UI_ExtraTime extends tgxUIController { }
 export class UI_Magnetic extends tgxUIController { }
@@ -15,4 +16,6 @@ tgxModuleContext.attachModule(UI_AboutMe, ModuleDef.MODULE_ALIENS);
 tgxModuleContext.attachModule(UI_Setting, ModuleDef.MODULE_ALIENS);
 tgxModuleContext.attachModule(UI_Magnetic, ModuleDef.MODULE_ALIENS);
 tgxModuleContext.attachModule(UI_BattleGambit, ModuleDef.MODULE_ALIENS);
-tgxModuleContext.attachModule(UI_PowerUp, ModuleDef.MODULE_ALIENS);
+tgxModuleContext.attachModule(UI_PowerUp, ModuleDef.MODULE_ALIENS);
+tgxModuleContext.attachModule(UI_TimeExpan, ModuleDef.MODULE_ALIENS);
+tgxModuleContext.attachModule(UI_BattleResult, ModuleDef.MODULE_ALIENS);

+ 16 - 1
temp/programming/packer-driver/targets/editor/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js

@@ -1,7 +1,7 @@
 System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, tgxModuleContext, tgxUIController, ModuleDef, UI_AboutMe, UI_Setting, UI_BattleResult, UI_BattleGambit, UI_PowerUp, UI_TopInfo, UI_ExtraTime, UI_Magnetic, _crd;
+  var _reporterNs, _cclegacy, tgxModuleContext, tgxUIController, ModuleDef, UI_AboutMe, UI_Setting, UI_BattleResult, UI_BattleGambit, UI_PowerUp, UI_TimeExpan, UI_TopInfo, UI_ExtraTime, UI_Magnetic, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../core_tgx/tgx", _context.meta, extras);
@@ -21,6 +21,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
     UI_BattleResult: void 0,
     UI_BattleGambit: void 0,
     UI_PowerUp: void 0,
+    UI_TimeExpan: void 0,
     UI_TopInfo: void 0,
     UI_ExtraTime: void 0,
     UI_Magnetic: void 0
@@ -63,6 +64,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
         error: Error()
       }), tgxUIController) : tgxUIController) {});
 
+      _export("UI_TimeExpan", UI_TimeExpan = class UI_TimeExpan extends (_crd && tgxUIController === void 0 ? (_reportPossibleCrUseOftgxUIController({
+        error: Error()
+      }), tgxUIController) : tgxUIController) {});
+
       _export("UI_TopInfo", UI_TopInfo = class UI_TopInfo extends (_crd && tgxUIController === void 0 ? (_reportPossibleCrUseOftgxUIController({
         error: Error()
       }), tgxUIController) : tgxUIController) {});
@@ -100,6 +105,16 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
       }), tgxModuleContext) : tgxModuleContext).attachModule(UI_PowerUp, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
         error: Error()
       }), ModuleDef) : ModuleDef).MODULE_ALIENS);
+      (_crd && tgxModuleContext === void 0 ? (_reportPossibleCrUseOftgxModuleContext({
+        error: Error()
+      }), tgxModuleContext) : tgxModuleContext).attachModule(UI_TimeExpan, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
+        error: Error()
+      }), ModuleDef) : ModuleDef).MODULE_ALIENS);
+      (_crd && tgxModuleContext === void 0 ? (_reportPossibleCrUseOftgxModuleContext({
+        error: Error()
+      }), tgxModuleContext) : tgxModuleContext).attachModule(UI_BattleResult, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
+        error: Error()
+      }), ModuleDef) : ModuleDef).MODULE_ALIENS);
 
       _cclegacy._RF.pop();
 

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js.map


+ 21 - 54
temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js

@@ -1,7 +1,7 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7"], function (_export, _context) {
+System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, tween, v3, Vec3, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, GtagMgr, GtagType, LevelManager, AliensAudioMgr, UI_BattleResult_Impl, _crd;
+  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, LevelManager, AliensAudioMgr, UserManager, TimerMgr, UI_BattleResult_Impl, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../../../../core_tgx/tgx", _context.meta, extras);
@@ -19,14 +19,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("Layout_BattleResult", "./Layout_BattleResult", _context.meta, extras);
   }
 
-  function _reportPossibleCrUseOfGtagMgr(extras) {
-    _reporterNs.report("GtagMgr", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagType(extras) {
-    _reporterNs.report("GtagType", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
   function _reportPossibleCrUseOfLevelManager(extras) {
     _reporterNs.report("LevelManager", "../../../Script/Manager/LevelMgr", _context.meta, extras);
   }
@@ -35,6 +27,14 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("AliensAudioMgr", "../../../Script/Manager/CarUnscrewAudioMgr", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfUserManager(extras) {
+    _reporterNs.report("UserManager", "../../../Script/Manager/UserMgr", _context.meta, extras);
+  }
+
+  function _reportPossibleCrUseOfTimerMgr(extras) {
+    _reporterNs.report("TimerMgr", "../../../Script/Manager/TimerMgr", _context.meta, extras);
+  }
+
   _export("UI_BattleResult_Impl", void 0);
 
   return {
@@ -45,9 +45,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
       __checkObsolete__ = _cc.__checkObsolete__;
       __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
       isValid = _cc.isValid;
-      tween = _cc.tween;
-      v3 = _cc.v3;
-      Vec3 = _cc.Vec3;
       Tween = _cc.Tween;
     }, function (_unresolved_2) {
       tgxModuleContext = _unresolved_2.tgxModuleContext;
@@ -58,12 +55,13 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     }, function (_unresolved_5) {
       Layout_BattleResult = _unresolved_5.Layout_BattleResult;
     }, function (_unresolved_6) {
-      GtagMgr = _unresolved_6.GtagMgr;
-      GtagType = _unresolved_6.GtagType;
+      LevelManager = _unresolved_6.LevelManager;
     }, function (_unresolved_7) {
-      LevelManager = _unresolved_7.LevelManager;
+      AliensAudioMgr = _unresolved_7.AliensAudioMgr;
     }, function (_unresolved_8) {
-      AliensAudioMgr = _unresolved_8.AliensAudioMgr;
+      UserManager = _unresolved_8.UserManager;
+    }, function (_unresolved_9) {
+      TimerMgr = _unresolved_9.TimerMgr;
     }],
     execute: function () {
       _crd = true;
@@ -112,47 +110,16 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
           });
           layout.winNode.active = this.win;
           layout.loseNode.active = !this.win;
+        }
 
-          if (!this.win) {
-            this.rainEffect();
-          }
-
-          this.rotationLight();
-          const {
-            level
-          } = (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
-            error: Error()
-          }), LevelManager) : LevelManager).instance.levelModel;
-          (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
+        emitEvent() {
+          (_crd && TimerMgr === void 0 ? (_reportPossibleCrUseOfTimerMgr({
             error: Error()
-          }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
+          }), TimerMgr) : TimerMgr).inst.reset();
+          (_crd && UserManager === void 0 ? (_reportPossibleCrUseOfUserManager({
             error: Error()
-          }), GtagType) : GtagType).level_end, {
-            level
-          }); //上报关卡结束
-        } //下雨效果播放
-
-
-        rainEffect() {
-          let layout = this.layout;
-        }
+          }), UserManager) : UserManager).instance.reset();
 
-        rotationLight() {
-          if (!this.win) return;
-          const {
-            light
-          } = this.layout;
-          light.eulerAngles = v3(0, 0, 0);
-          tween(light).repeatForever(tween().to(5, {
-            eulerAngles: new Vec3(0, 0, 360)
-          }, {
-            easing: 'linear'
-          }).call(() => {
-            light.eulerAngles = new Vec3(0, 0, 0);
-          })).start();
-        }
-
-        emitEvent() {
           if (this.win) {
             (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
               error: Error()

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
temp/programming/packer-driver/targets/editor/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map


+ 16 - 1
temp/programming/packer-driver/targets/preview/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js

@@ -1,7 +1,7 @@
 System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, tgxModuleContext, tgxUIController, ModuleDef, UI_AboutMe, UI_Setting, UI_BattleResult, UI_BattleGambit, UI_PowerUp, UI_TopInfo, UI_ExtraTime, UI_Magnetic, _crd;
+  var _reporterNs, _cclegacy, tgxModuleContext, tgxUIController, ModuleDef, UI_AboutMe, UI_Setting, UI_BattleResult, UI_BattleGambit, UI_PowerUp, UI_TimeExpan, UI_TopInfo, UI_ExtraTime, UI_Magnetic, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../core_tgx/tgx", _context.meta, extras);
@@ -21,6 +21,7 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
     UI_BattleResult: void 0,
     UI_BattleGambit: void 0,
     UI_PowerUp: void 0,
+    UI_TimeExpan: void 0,
     UI_TopInfo: void 0,
     UI_ExtraTime: void 0,
     UI_Magnetic: void 0
@@ -63,6 +64,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
         error: Error()
       }), tgxUIController) : tgxUIController) {});
 
+      _export("UI_TimeExpan", UI_TimeExpan = class UI_TimeExpan extends (_crd && tgxUIController === void 0 ? (_reportPossibleCrUseOftgxUIController({
+        error: Error()
+      }), tgxUIController) : tgxUIController) {});
+
       _export("UI_TopInfo", UI_TopInfo = class UI_TopInfo extends (_crd && tgxUIController === void 0 ? (_reportPossibleCrUseOftgxUIController({
         error: Error()
       }), tgxUIController) : tgxUIController) {});
@@ -100,6 +105,16 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], fu
       }), tgxModuleContext) : tgxModuleContext).attachModule(UI_PowerUp, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
         error: Error()
       }), ModuleDef) : ModuleDef).MODULE_ALIENS);
+      (_crd && tgxModuleContext === void 0 ? (_reportPossibleCrUseOftgxModuleContext({
+        error: Error()
+      }), tgxModuleContext) : tgxModuleContext).attachModule(UI_TimeExpan, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
+        error: Error()
+      }), ModuleDef) : ModuleDef).MODULE_ALIENS);
+      (_crd && tgxModuleContext === void 0 ? (_reportPossibleCrUseOftgxModuleContext({
+        error: Error()
+      }), tgxModuleContext) : tgxModuleContext).attachModule(UI_BattleResult, (_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
+        error: Error()
+      }), ModuleDef) : ModuleDef).MODULE_ALIENS);
 
       _cclegacy._RF.pop();
 

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/e8/e8516dd3d0c50477670b5bf1a4ea03c6369cceb5.js.map


+ 21 - 54
temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js

@@ -1,7 +1,7 @@
-System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7"], function (_export, _context) {
+System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
   "use strict";
 
-  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, tween, v3, Vec3, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, GtagMgr, GtagType, LevelManager, AliensAudioMgr, UI_BattleResult_Impl, _crd;
+  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, isValid, Tween, tgxModuleContext, GameUILayers, UI_BattleResult, Layout_BattleResult, LevelManager, AliensAudioMgr, UserManager, TimerMgr, UI_BattleResult_Impl, _crd;
 
   function _reportPossibleCrUseOftgxModuleContext(extras) {
     _reporterNs.report("tgxModuleContext", "../../../../core_tgx/tgx", _context.meta, extras);
@@ -19,14 +19,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("Layout_BattleResult", "./Layout_BattleResult", _context.meta, extras);
   }
 
-  function _reportPossibleCrUseOfGtagMgr(extras) {
-    _reporterNs.report("GtagMgr", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
-  function _reportPossibleCrUseOfGtagType(extras) {
-    _reporterNs.report("GtagType", "db://assets/core_tgx/base/GtagMgr", _context.meta, extras);
-  }
-
   function _reportPossibleCrUseOfLevelManager(extras) {
     _reporterNs.report("LevelManager", "../../../Script/Manager/LevelMgr", _context.meta, extras);
   }
@@ -35,6 +27,14 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     _reporterNs.report("AliensAudioMgr", "../../../Script/Manager/CarUnscrewAudioMgr", _context.meta, extras);
   }
 
+  function _reportPossibleCrUseOfUserManager(extras) {
+    _reporterNs.report("UserManager", "../../../Script/Manager/UserMgr", _context.meta, extras);
+  }
+
+  function _reportPossibleCrUseOfTimerMgr(extras) {
+    _reporterNs.report("TimerMgr", "../../../Script/Manager/TimerMgr", _context.meta, extras);
+  }
+
   _export("UI_BattleResult_Impl", void 0);
 
   return {
@@ -45,9 +45,6 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
       __checkObsolete__ = _cc.__checkObsolete__;
       __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
       isValid = _cc.isValid;
-      tween = _cc.tween;
-      v3 = _cc.v3;
-      Vec3 = _cc.Vec3;
       Tween = _cc.Tween;
     }, function (_unresolved_2) {
       tgxModuleContext = _unresolved_2.tgxModuleContext;
@@ -58,12 +55,13 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
     }, function (_unresolved_5) {
       Layout_BattleResult = _unresolved_5.Layout_BattleResult;
     }, function (_unresolved_6) {
-      GtagMgr = _unresolved_6.GtagMgr;
-      GtagType = _unresolved_6.GtagType;
+      LevelManager = _unresolved_6.LevelManager;
     }, function (_unresolved_7) {
-      LevelManager = _unresolved_7.LevelManager;
+      AliensAudioMgr = _unresolved_7.AliensAudioMgr;
     }, function (_unresolved_8) {
-      AliensAudioMgr = _unresolved_8.AliensAudioMgr;
+      UserManager = _unresolved_8.UserManager;
+    }, function (_unresolved_9) {
+      TimerMgr = _unresolved_9.TimerMgr;
     }],
     execute: function () {
       _crd = true;
@@ -112,47 +110,16 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
           });
           layout.winNode.active = this.win;
           layout.loseNode.active = !this.win;
+        }
 
-          if (!this.win) {
-            this.rainEffect();
-          }
-
-          this.rotationLight();
-          var {
-            level
-          } = (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
-            error: Error()
-          }), LevelManager) : LevelManager).instance.levelModel;
-          (_crd && GtagMgr === void 0 ? (_reportPossibleCrUseOfGtagMgr({
+        emitEvent() {
+          (_crd && TimerMgr === void 0 ? (_reportPossibleCrUseOfTimerMgr({
             error: Error()
-          }), GtagMgr) : GtagMgr).inst.doGameDot((_crd && GtagType === void 0 ? (_reportPossibleCrUseOfGtagType({
+          }), TimerMgr) : TimerMgr).inst.reset();
+          (_crd && UserManager === void 0 ? (_reportPossibleCrUseOfUserManager({
             error: Error()
-          }), GtagType) : GtagType).level_end, {
-            level
-          }); //上报关卡结束
-        } //下雨效果播放
-
-
-        rainEffect() {
-          var layout = this.layout;
-        }
+          }), UserManager) : UserManager).instance.reset();
 
-        rotationLight() {
-          if (!this.win) return;
-          var {
-            light
-          } = this.layout;
-          light.eulerAngles = v3(0, 0, 0);
-          tween(light).repeatForever(tween().to(5, {
-            eulerAngles: new Vec3(0, 0, 360)
-          }, {
-            easing: 'linear'
-          }).call(() => {
-            light.eulerAngles = new Vec3(0, 0, 0);
-          })).start();
-        }
-
-        emitEvent() {
           if (this.win) {
             (_crd && LevelManager === void 0 ? (_reportPossibleCrUseOfLevelManager({
               error: Error()

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
temp/programming/packer-driver/targets/preview/chunks/f3/f3c58ea8e7dd894de2d3b26eaba9d78fef3f6964.js.map


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff