Citrus 3 miesięcy temu
rodzic
commit
08b654222f

+ 7 - 3
assets/Script/Game.ts

@@ -7,18 +7,22 @@
 
 import AudioManager from "./AudioManager";
 
-const {ccclass, property} = cc._decorator;
+const { ccclass, property } = cc._decorator;
 
 @ccclass
 export default class Game extends cc.Component {
 
- 
+
 
     // onLoad () {}
 
-    start () {
+    start() {
         AudioManager.instance.playGameBg()
     }
 
+
+    back() {
+        cc.director.loadScene("Hall")
+    }
     // update (dt) {}
 }

+ 5 - 0
assets/Script/Hall.ts

@@ -23,6 +23,11 @@ export default class Hall extends cc.Component {
         this.init()
 
         AudioManager.instance.playHallBg()
+
+        if (cc.sys.platform == cc.sys.WECHAT_GAME) {
+            let Editer = this.node.getChildByName("UI").getChildByName("Editer")
+            Editer.active=false
+        }
     }
 
     init() {

Plik diff jest za duży
+ 319 - 482
assets/sub/Scene/Game.fire


+ 1 - 1
assets/sub/Scene/Hall.fire

@@ -3901,7 +3901,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "New Button",
+    "_name": "Editer",
     "_objFlags": 0,
     "_parent": {
       "__id__": 8

BIN
assets/sub/Texture/UI/tuichu.png


+ 38 - 0
assets/sub/Texture/UI/tuichu.png.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "30fd9839-6b53-40e2-937c-750507b28911",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 67,
+  "height": 67,
+  "platformSettings": {},
+  "subMetas": {
+    "tuichu": {
+      "ver": "1.0.6",
+      "uuid": "0f229858-eb93-42c9-a05b-f48171bf794f",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "30fd9839-6b53-40e2-937c-750507b28911",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 67,
+      "height": 67,
+      "rawWidth": 67,
+      "rawHeight": 67,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików