zouyong 5 лет назад
Родитель
Сommit
71871d658b

+ 3 - 3
assets/resources/game/prefab/cast.prefab

@@ -475,8 +475,8 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        0,
-        0,
+        -189.11,
+        -18.9,
         0,
         0,
         0,
@@ -544,7 +544,7 @@
     "asset": {
       "__uuid__": "43c489d3-8e64-48bd-aa3b-abddeb2d3dca"
     },
-    "fileId": "4b8wFW5dFOmKbUNjnZMZ3F",
+    "fileId": "a5eNDoiDRH6YQ+jCK+u83A",
     "sync": false
   },
   {

+ 3 - 0
assets/resources/game/prefab/game.prefab

@@ -5026,6 +5026,9 @@
     "btn7": {
       "__id__": 19
     },
+    "btn_redeem": {
+      "__id__": 65
+    },
     "_id": ""
   },
   {

+ 4 - 4
assets/script/game/game/FunBtns.ts

@@ -18,6 +18,8 @@ export default class FunBtns extends cc.Component {
     btn6: cc.Node = null;
     @property({ type: cc.Node, displayName: "常规提现" })
     btn7: cc.Node = null;
+    @property({ type: cc.Node, displayName: "福利礼包" })
+    btn_redeem: cc.Node = null;
 
     onLoad() {
 
@@ -31,15 +33,13 @@ export default class FunBtns extends cc.Component {
     init() {
         let data = gData.gameData.funOpenData;
         for (let i = 0; i < data.length; i++) {
-            if (data[i] == '0') {
-                this['btn' + (i + 1)].active = data[i] == "1";
-            }
+            this['btn' + (i + 1)].active = data[i] == "1";
         }
         this.updateRedeem();
     }
 
     private updateRedeem() {
-        this.btn1.active = gData.redeem.showBtn;
+        this.btn_redeem.active = gData.redeem.showBtn;
     }