Sfoglia il codice sorgente

通关结算威望石飞到兵营

薛鸿潇 5 anni fa
parent
commit
e20d32df6d

+ 4 - 1
tower_sanguo/assets/resources/module/main/main.prefab

@@ -160,7 +160,7 @@
       "array": [
         0,
         0,
-        487.572302330639,
+        518.1808876956452,
         0,
         0,
         0,
@@ -20943,6 +20943,9 @@
     "btn_3": {
       "__id__": 460
     },
+    "btn_2": {
+      "__id__": 409
+    },
     "btn_chPo_RedBag": {
       "__id__": 226
     },

+ 2 - 0
tower_sanguo/assets/scripts/module/main/MainUI.ts

@@ -97,6 +97,8 @@ export default class MainUI extends BaseUI {
     lbl_pigback_count: cc.Label = null;
     @property({ type: cc.Button, displayName: '训练按钮' })
     btn_3: cc.Button = null;
+    @property({ type: cc.Button, displayName: '兵营按钮' })
+    btn_2: cc.Button = null;
     @property({ type: cc.Button, displayName: '通关红包按钮', tooltip: '动画用' })
     btn_chPo_RedBag: cc.Button = null;
 

+ 1 - 0
tower_sanguo/assets/scripts/module/result/ResultUI.ts

@@ -168,6 +168,7 @@ export default class ResultUI extends BaseUI {
                 node_name = 'node_hb';
             } else if (arr_item[i] === 4) {// 威望
                 node_name = 'node_ww';
+                end_node = comp_main.btn_2.node;
             }
             _sf_data = comp_main[node_name].spriteFrame;
             this.scheduleOnce(() => {