浏览代码

关闭绘制

181404010226 3 月之前
父节点
当前提交
61529c37b8
共有 2 个文件被更改,包括 97 次插入18 次删除
  1. 89 10
      assets/Scenes/GameLevel.scene
  2. 8 8
      assets/scripts/Core/PhysicsManager.ts

+ 89 - 10
assets/Scenes/GameLevel.scene

@@ -57,7 +57,7 @@
     },
     "autoReleaseAssets": false,
     "_globals": {
-      "__id__": 1019
+      "__id__": 1025
     },
     "_id": "29694223-a59c-44b3-acb0-80ab92d103f5"
   },
@@ -37567,7 +37567,17 @@
     "asset": null,
     "fileId": "29694223-a59c-44b3-acb0-80ab92d103f5",
     "instance": null,
-    "targetOverrides": [],
+    "targetOverrides": [
+      {
+        "__id__": 1019
+      },
+      {
+        "__id__": 1021
+      },
+      {
+        "__id__": 1023
+      }
+    ],
     "nestedPrefabInstanceRoots": [
       {
         "__id__": 293
@@ -37580,31 +37590,100 @@
       }
     ]
   },
+  {
+    "__type__": "cc.TargetOverrideInfo",
+    "source": {
+      "__id__": 321
+    },
+    "sourceInfo": null,
+    "propertyPath": [
+      "skillButtons",
+      "0"
+    ],
+    "target": {
+      "__id__": 293
+    },
+    "targetInfo": {
+      "__id__": 1020
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "9bckw8VnJAVJfh+LK/5rLp"
+    ]
+  },
+  {
+    "__type__": "cc.TargetOverrideInfo",
+    "source": {
+      "__id__": 321
+    },
+    "sourceInfo": null,
+    "propertyPath": [
+      "skillButtons",
+      "1"
+    ],
+    "target": {
+      "__id__": 301
+    },
+    "targetInfo": {
+      "__id__": 1022
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "9bckw8VnJAVJfh+LK/5rLp"
+    ]
+  },
+  {
+    "__type__": "cc.TargetOverrideInfo",
+    "source": {
+      "__id__": 321
+    },
+    "sourceInfo": null,
+    "propertyPath": [
+      "skillButtons",
+      "2"
+    ],
+    "target": {
+      "__id__": 309
+    },
+    "targetInfo": {
+      "__id__": 1024
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "9bckw8VnJAVJfh+LK/5rLp"
+    ]
+  },
   {
     "__type__": "cc.SceneGlobals",
     "ambient": {
-      "__id__": 1020
+      "__id__": 1026
     },
     "shadows": {
-      "__id__": 1021
+      "__id__": 1027
     },
     "_skybox": {
-      "__id__": 1022
+      "__id__": 1028
     },
     "fog": {
-      "__id__": 1023
+      "__id__": 1029
     },
     "octree": {
-      "__id__": 1024
+      "__id__": 1030
     },
     "skin": {
-      "__id__": 1025
+      "__id__": 1031
     },
     "lightProbeInfo": {
-      "__id__": 1026
+      "__id__": 1032
     },
     "postSettings": {
-      "__id__": 1027
+      "__id__": 1033
     },
     "bakedWithStationaryMainLight": false,
     "bakedWithHighpLightmap": false

+ 8 - 8
assets/scripts/Core/PhysicsManager.ts

@@ -22,14 +22,14 @@ export class PhysicsManager extends BaseSingleton {
         // 设置物理系统的重力为零(因为是2D平面游戏)
         PhysicsSystem2D.instance.gravity = new Vec2(0, 0);
         
-        // 调试绘制
-        PhysicsSystem2D.instance.debugDrawFlags = this.debugDraw ?
-            (EPhysics2DDrawFlags.Aabb |
-             EPhysics2DDrawFlags.Pair |
-             EPhysics2DDrawFlags.CenterOfMass |
-             EPhysics2DDrawFlags.Joint |
-             EPhysics2DDrawFlags.Shape) :
-            EPhysics2DDrawFlags.None;
+        // // 调试绘制
+        // PhysicsSystem2D.instance.debugDrawFlags = this.debugDraw ?
+        //     (EPhysics2DDrawFlags.Aabb |
+        //      EPhysics2DDrawFlags.Pair |
+        //      EPhysics2DDrawFlags.CenterOfMass |
+        //      EPhysics2DDrawFlags.Joint |
+        //      EPhysics2DDrawFlags.Shape) :
+        //     EPhysics2DDrawFlags.None;
     }
 
     /**