xx 1 year ago
parent
commit
a532cb6d56

File diff suppressed because it is too large
+ 217 - 888
assets/resources/prefabs/game.prefab


+ 8 - 16
assets/script/game/results.ts

@@ -15,12 +15,10 @@ export class results extends Component {
     @property(Node) btn_restart:Node = null
     @property(Node) lab_scores:Node = null
     @property(Node) btn_back_home:Node = null
-    @property(Node) first_over_node:Node = null
-    @property(Node) not_first_over_node:Node = null
     @property(Node) btn_video_reLife:Node = null
-    @property(Node) btn_share_reLife:Node = null
-    @property(Node) check_back_home:Node = null
     @property(Node) unlock_car:Node = null
+    @property(Node) btn_share:Node = null
+    @property(Node) lab_des:Node = null
     private call_back = null
     private back_home_cb = null
     start() {
@@ -36,11 +34,6 @@ export class results extends Component {
            }
         })
 
-        uiManager.Instance().onButtonListen(this.check_back_home,()=>{
-            if(this.back_home_cb){
-                 this.back_home_cb()
-            }
-         })
 
         uiManager.Instance().onButtonListen(this.btn_video_reLife,()=>{
             SdkUtil.showVideoAd(config.ADS_CONFIG.GAME_RELIFE_VIDEO,()=>{
@@ -51,12 +44,12 @@ export class results extends Component {
             })
         })
 
-         uiManager.Instance().onButtonListen(this.btn_share_reLife,()=>{
+         uiManager.Instance().onButtonListen(this.btn_share,()=>{
             SdkUtil.shareGame(config.ADS_CONFIG.GAME_RELIFE_SHARE_TITLE,()=>{
-                if(this.call_back){
-                    this.call_back(true)
-                    this.close()
-                }
+                // if(this.call_back){
+                //     this.call_back(true)
+                //     this.close()
+                // }
             })
          })
     }
@@ -68,8 +61,7 @@ export class results extends Component {
 
     public show(scores:number,call,back_home_cb,isFristOverGame:boolean){
         this.back_home_cb = back_home_cb
-        this.first_over_node.active = isFristOverGame
-        this.not_first_over_node.active =!isFristOverGame
+        this.btn_video_reLife.active = isFristOverGame
         http.post(config.API.sync_integral,{"integral":scores},(err,data)=>{
             if(!err){
                 let d = JSON.parse(data)

BIN
assets/texture/results/btn_share.png


+ 20 - 20
assets/texture/results/btn_share.png.meta

@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 80,
-        "height": 118,
-        "rawWidth": 80,
-        "rawHeight": 118,
+        "width": 82,
+        "height": 123,
+        "rawWidth": 82,
+        "rawHeight": 123,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -40,
-            -59,
+            -41,
+            -61.5,
             0,
-            40,
-            -59,
+            41,
+            -61.5,
             0,
-            -40,
-            59,
+            -41,
+            61.5,
             0,
-            40,
-            59,
+            41,
+            61.5,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            118,
-            80,
-            118,
+            123,
+            82,
+            123,
             0,
             0,
-            80,
+            82,
             0
           ],
           "nuv": [
@@ -103,13 +103,13 @@
             1
           ],
           "minPos": [
-            -40,
-            -59,
+            -41,
+            -61.5,
             0
           ],
           "maxPos": [
-            40,
-            59,
+            41,
+            61.5,
             0
           ]
         },

Some files were not shown because too many files changed in this diff