0224995 2 روز پیش
والد
کامیت
852de98480

+ 1 - 1
assets/Scene/StartScene.scene

@@ -3892,7 +3892,7 @@
         "__id__": 150
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 288

+ 1 - 0
assets/Script/Frames/LocalDt.ts

@@ -61,6 +61,7 @@ class LocalStorage {
         this.saveData("Diamond", 188);
         this.saveData("Gold", 5888);
         this.saveData("curLv", 1);
+        this.saveData("availableCardSlot", 5);
     }
 }
 export const localDt: LocalStorage = LocalStorage.instance = new LocalStorage();

+ 1 - 1
assets/Script/Game/MyApp.ts

@@ -30,7 +30,7 @@ export class MyApp extends Component {
         });
         await resMgr.loadAllRes("UI", (finish, total) => {
             loadingUI?.updateProgress(finish / total);
-            loadingUI?.updateWhichRes(2);
+            loadingUI?.updateWhichRes(3);
         });
         this.initData();
         this.loadingUI.active = false;

+ 3 - 0
assets/Script/Game/MyApp/GameScene/Bottom.ts

@@ -70,9 +70,12 @@ export class Bottom extends ModulerBase {
             if(lock.active){
                 lock.active = false;
             }
+            //设置角色图片
             const sprite: Node = role.getChildByName("Sprite");
             const imgName: string = GameInfo.Instance.getRoleImgNames()[i];
             sprite.getComponent(Sprite).spriteFrame = resMgr.getSpriteFrame(imgName);
+
+            //设置消耗量
             for (const roleDt of this._roleDts) {
                 if (roleDt.imgName === imgName) {
                     const count: Node = role.getChildByName("Count");

+ 1 - 0
assets/Script/Game/MyApp/GameScene/GameOver.ts

@@ -101,6 +101,7 @@ export class GameOver extends ModulerBase {
 
     private _onBtnRight() {
         director.resume();
+        GameInfo.Instance.setIsGameOver(false);
         if (GameInfo.Instance.getOverWin()) {
             //初始化场景
             this._initGameScene();