woso_javan 3 долоо хоног өмнө
parent
commit
4e287ca4f5

+ 16 - 0
assets/module_aliens/Script/BattleUI.ts

@@ -7,6 +7,7 @@ import { EventDispatcher } from '../../core_tgx/easy_ui_framework/EventDispatche
 import { GameEvent } from './Enum/GameEvent';
 import { GlobalConfig } from '../../start/Config/GlobalConfig';
 import { AdvertMgr } from '../../core_tgx/base/ad/AdvertMgr';
+import { LevelManager } from './Manager/LevelMgr';
 const { ccclass, property } = _decorator;
 
 @ccclass('BattleUI')
@@ -34,6 +35,10 @@ export class BattleUI extends Component {
         this.updateBtnsCountUI();
     }
 
+    protected onEnable(): void {
+        this.resetRemainPos();
+    }
+
     private registerListener() {
         EventDispatcher.instance.on(GameEvent.EVENT_REFRESH_PLAYER_INFO,this.updateBtnsCountUI,this);
         EventDispatcher.instance.on(GameEvent.EVENT_CAMERA_SPLIT,this.startCamerSplit,this);
@@ -45,6 +50,17 @@ export class BattleUI extends Component {
         btnProbe.on(NodeEventType.TOUCH_END, () => this.onRadar(), this);
     }
 
+    private resetRemainPos(){
+        const {level} = LevelManager.instance.levelModel;
+        const remain = this.node.getChildByName('Remain');
+        remain.setPosition(-50,590,0); //默认居中
+
+        if(level > 1){
+            console.log(`当前等级:${level}`)
+            remain.setPosition(-250,590,0);
+        }
+    }
+
     private updateBtnsCountUI(){
         const {radarFreeCount,freeScreenShotCount} = UserManager.instance.userModel;
         this.lbRenderFreeCount.string = `${freeScreenShotCount}`;

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 166 - 143
assets/module_aliens/rooster_aliens.scene


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

@@ -1112,31 +1112,6 @@
       },
       "scale": 0.2726269331663144
     },
-    "e4c2b613-d38f-42e1-9557-74a22acb2cdb": {
-      "position": {
-        "x": 403.04240188357363,
-        "y": 800.9339465520965,
-        "z": 5000
-      },
-      "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
-      },
-      "viewCenter": {
-        "x": 0,
-        "y": 0,
-        "z": 0
-      },
-      "contentRect": {
-        "x": -390.407285828671,
-        "y": 698.6355142985199,
-        "width": 0,
-        "height": 0
-      },
-      "scale": 0.2726269331663144
-    },
     "7cef9a87-b169-4934-a57b-09eafc129e91": {
       "position": {
         "x": 997,
@@ -1169,10 +1144,10 @@
         "z": -13.196309461020594
       },
       "rotation": {
-        "x": -0.11356746565673946,
+        "x": -0.11356746565673945,
         "y": 0.8424965922135024,
-        "z": 0.19571416450996737,
-        "w": 0.4888741030808509
+        "z": 0.19571416450996731,
+        "w": 0.4888741030808507
       },
       "viewCenter": {
         "x": 386.12080174708495,
@@ -1189,20 +1164,20 @@
     },
     "29dc5799-9f85-4365-b308-d63b7f8c6727": {
       "position": {
-        "x": 379.22814195314976,
-        "y": 801.4965122950509,
-        "z": -5.179875550391828
+        "x": 384.0199168807094,
+        "y": 801.1093019972775,
+        "z": -5.016991122820414
       },
       "rotation": {
-        "x": -0.04321495441222753,
-        "y": -0.37542781544683573,
-        "z": -0.017526718259034728,
-        "w": 0.9256777178105964
+        "x": -0.11672951977952328,
+        "y": 0.18653429157598733,
+        "z": 0.02232724970220363,
+        "w": 0.9752336495418834
       },
       "viewCenter": {
-        "x": 385.34404017909077,
-        "y": 800.6749314733378,
-        "z": -11.479526627556456
+        "x": 382.54400634765625,
+        "y": 800.1380004882812,
+        "z": -8.734000205993652
       },
       "contentRect": {
         "x": -255.48121912906242,
@@ -1212,17 +1187,42 @@
       },
       "scale": 0.4585020216023357
     },
+    "e4c2b613-d38f-42e1-9557-74a22acb2cdb": {
+      "position": {
+        "x": 392.97571384681316,
+        "y": 793.1884375657249,
+        "z": 5000
+      },
+      "rotation": {
+        "x": 0,
+        "y": 0,
+        "z": 0,
+        "w": 1
+      },
+      "viewCenter": {
+        "x": 1059.1144884801104,
+        "y": -838.1545294454286,
+        "z": 131.66099660264535
+      },
+      "contentRect": {
+        "x": 392.9757138468131,
+        "y": 793.1884375657249,
+        "width": 0,
+        "height": 0
+      },
+      "scale": 1.6817928305074272
+    },
     "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 31.565114316470655,
-        "y": 31.565114316470652,
-        "z": 31.565114316470652
+        "x": 182.35666666666663,
+        "y": 154.4408333333333,
+        "z": 5000
       },
       "rotation": {
-        "x": -0.27984814233312133,
-        "y": 0.3647051996310009,
-        "z": 0.11591689595929512,
-        "w": 0.8804762392171493
+        "x": 0,
+        "y": 0,
+        "z": 0,
+        "w": 1
       },
       "viewCenter": {
         "x": 0,
@@ -1230,18 +1230,18 @@
         "z": 0
       },
       "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 363,
-        "height": 767
+        "x": 455,
+        "y": 383.5,
+        "width": 898.1355932203389,
+        "height": 757
       },
-      "scale": 1
+      "scale": 0.9869621903520208
     },
     "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 18.695477141176585,
-        "y": 18.695477141176582,
-        "z": 18.69547714117658
+        "x": 181.5,
+        "y": 383.5,
+        "z": 5000
       },
       "rotation": {
         "x": 0,
@@ -1264,8 +1264,8 @@
     },
     "be14c61f-22d8-4bb9-b444-ad9f29740469": {
       "position": {
-        "x": 347.91588821180403,
-        "y": 563.2241682350736,
+        "x": 726.2112232030265,
+        "y": 414.6639344262295,
         "z": 5000
       },
       "rotation": {
@@ -1275,17 +1275,17 @@
         "w": 1
       },
       "viewCenter": {
-        "x": 1059.1144884801104,
-        "y": -838.1545294454286,
-        "z": 131.66099660264535
-      },
-      "contentRect": {
         "x": 0,
         "y": 0,
-        "width": 363,
-        "height": 767
+        "z": 0
       },
-      "scale": 1
+      "contentRect": {
+        "x": 542.4224464060529,
+        "y": 26.32786885245902,
+        "width": 898.6674968866749,
+        "height": 793
+      },
+      "scale": 0.987546699875467
     }
   },
   "camera-uuids": [
@@ -1332,10 +1332,10 @@
     "9b276317-137b-47c3-846f-5adaae548eff",
     "02aebe80-4488-4c7d-9cc6-5b71a0f5351d",
     "f631c866-c36b-443f-a8c0-a895176b7610",
-    "e4c2b613-d38f-42e1-9557-74a22acb2cdb",
     "7cef9a87-b169-4934-a57b-09eafc129e91",
     "773de0b0-468b-4fbb-965c-36c47d7a4c94",
     "29dc5799-9f85-4365-b308-d63b7f8c6727",
+    "e4c2b613-d38f-42e1-9557-74a22acb2cdb",
     "19323c5d-5d36-438a-86ee-8288c690e5b0",
     "9e293cde-e27b-4902-808b-e884f3e9da32",
     "be14c61f-22d8-4bb9-b444-ad9f29740469"

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно