woso_javan 3 weeks ago
parent
commit
1468607820

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

@@ -27,7 +27,10 @@ export class UI_TimeExpan_Impl extends UI_TimeExpan {
 
     protected onCreated(): void {
         this._addTime = UserManager.instance.userModel.reviveAddTime;
-        this._addTime = 15;//测试
+
+        if(GlobalConfig.isDebug){
+            this._addTime = 15;
+        }
 
         let layout = this.layout as Layout_TimeExpan;
         this.onButtonEvent(layout.btn_get, () => {

+ 5 - 1
assets/module_aliens/Script/Components/TauntComponent.ts

@@ -3,6 +3,7 @@ import { UserManager } from '../Manager/UserMgr';
 import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
 import { GameEvent } from '../Enum/GameEvent';
 import { AliensAudioMgr } from '../Manager/AliensAudioMgr';
+import { GlobalConfig } from 'db://assets/start/Config/GlobalConfig';
 const { ccclass, property } = _decorator;
 
 //嘲讽文本
@@ -27,7 +28,10 @@ export class TauntComponent extends Component {
     start() {
         const tauntTime = UserManager.instance.userModel.tauntIntervalTime
         this.tauntIntervalTime = tauntTime;
-        // this.tauntIntervalTime = 5;//测试
+
+        if(GlobalConfig.isDebug){
+            this.tauntIntervalTime = 10; 
+        }
 
         this._originPos = this.node.position.clone();
         EventDispatcher.instance.on(GameEvent.EVENT_GAME_COUNTDOWN_START,this.startTauntSchedule,this)

+ 6 - 0
assets/module_aliens/Script/HomeUI.ts

@@ -5,6 +5,7 @@ import { tgxUIMgr } from '../../core_tgx/tgx';
 import { UI_BattleGambit } from '../../scripts/UIDef';
 import { EventDispatcher } from '../../core_tgx/easy_ui_framework/EventDispatcher';
 import { GameEvent } from './Enum/GameEvent';
+import { GlobalConfig } from '../../start/Config/GlobalConfig';
 const { ccclass, property } = _decorator;
 
 @ccclass('HomeUI')
@@ -36,6 +37,11 @@ export class HomeUI extends Component {
     start() {
         const {powerRecoverTime,powerMax,powerCurrent} = UserManager.instance.userModel;
         this.powerRecoverTime = powerRecoverTime;
+
+        if(GlobalConfig.isDebug){
+            this.powerRecoverTime = 30;
+        }
+
         this.powerMax = powerMax;
         this.powerCurrent = powerCurrent;
 

+ 5 - 1
assets/module_aliens/Script/Manager/TimerMgr.ts

@@ -6,6 +6,7 @@ import { tgxUIMgr } from "db://assets/core_tgx/tgx";
 import { UI_TimeExpan,UI_BattleResult } from "db://assets/scripts/UIDef";
 import { UserManager } from "./UserMgr";
 import { LevelManager } from "./LevelMgr";
+import { GlobalConfig } from "db://assets/start/Config/GlobalConfig";
 
 /** 时间管理器*/
 export class TimerMgr {
@@ -133,6 +134,9 @@ export class TimerMgr {
         director.getScheduler().unscheduleAllForTarget(this);
         this.addTimeCount = 0;
         this.countDownTime = LevelManager.instance.levelModel.levelTime;
-        this.countDownTime = 3; //测试
+        
+        if(GlobalConfig.isDebug){
+            this.countDownTime = 5; 
+        }
     }
 }

+ 4 - 4
assets/start/start.scene

@@ -254,8 +254,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 0.4854368932038835,
-      "y": 0.4854368932038835,
+      "x": 1,
+      "y": 1,
       "z": 0
     },
     "_mobility": 0,
@@ -280,8 +280,8 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1565.6,
-      "height": 3296
+      "width": 760,
+      "height": 1600
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

BIN
build/Rescue the car.zip


+ 4 - 4
library/9e/9e293cde-e27b-4902-808b-e884f3e9da32.json

@@ -254,8 +254,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 0.4854368932038835,
-      "y": 0.4854368932038835,
+      "x": 1,
+      "y": 1,
       "z": 0
     },
     "_mobility": 0,
@@ -280,8 +280,8 @@
     "__prefab": null,
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1565.6,
-      "height": 3296
+      "width": 760,
+      "height": 1600
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 1 - 1
profiles/v2/packages/scene.json

@@ -5,7 +5,7 @@
     "__version__": "1.3.7"
   },
   "gizmos-infos": {
-    "is2D": true,
+    "is2D": false,
     "is3DIcon": false,
     "iconSize": 2,
     "gridVisible": true,