Эх сурвалжийг харах

绕过闪烁问题(皮肤编号问题还是要解决,不然又奇怪的bug)

181404010226 1 сар өмнө
parent
commit
6717348963

+ 4 - 4
assets/Scenes/MainScene.scene

@@ -383,7 +383,7 @@
       "__id__": 2
     },
     "_children": [],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 10
@@ -398,7 +398,7 @@
     "_prefab": null,
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 0,
+      "x": -400,
       "y": -85.32689520567806,
       "z": 0
     },
@@ -498,8 +498,8 @@
     "__prefab": null,
     "_alignFlags": 45,
     "_target": null,
-    "_left": 85,
-    "_right": 85,
+    "_left": -315,
+    "_right": 485,
     "_top": -265.4131048038587,
     "_bottom": 578.4131048038587,
     "_horizontalCenter": 0,

+ 1 - 0
assets/scripts/CharacterManager.ts

@@ -45,6 +45,7 @@ export class CharacterManager extends Component {
         // 记录人物初始位置
         if (this.characterNode) {
             this.initialPosition = this.characterNode.position.clone();
+            this.initialPosition.x += 400; // 初始位置的x坐标增加400
         }
 
         // 设置按钮事件监听