tjt hace 1 año
padre
commit
0ced543f94
Se han modificado 37 ficheros con 3699 adiciones y 0 borrados
  1. 2 0
      Test10_24/.creator/asset-template/typescript/Custom Script Template Help Documentation.url
  2. 24 0
      Test10_24/.gitignore
  3. BIN
      Test10_24/assets/Circle.003.glb
  4. 179 0
      Test10_24/assets/Circle.003.glb.meta
  5. 11 0
      Test10_24/assets/CubePrefab.meta
  6. 228 0
      Test10_24/assets/CubePrefab/Cube.prefab
  7. 13 0
      Test10_24/assets/CubePrefab/Cube.prefab.meta
  8. 9 0
      Test10_24/assets/Materials.meta
  9. 92 0
      Test10_24/assets/Materials/grey.mtl
  10. 11 0
      Test10_24/assets/Materials/grey.mtl.meta
  11. 9 0
      Test10_24/assets/Scene.meta
  12. 2117 0
      Test10_24/assets/Scene/Main.scene
  13. 11 0
      Test10_24/assets/Scene/Main.scene.meta
  14. 9 0
      Test10_24/assets/Scripts.meta
  15. 131 0
      Test10_24/assets/Scripts/CreateMap.ts
  16. 9 0
      Test10_24/assets/Scripts/CreateMap.ts.meta
  17. 40 0
      Test10_24/assets/Scripts/CubeConfig.ts
  18. 9 0
      Test10_24/assets/Scripts/CubeConfig.ts.meta
  19. 63 0
      Test10_24/assets/Scripts/CubeInfo.ts
  20. 9 0
      Test10_24/assets/Scripts/CubeInfo.ts.meta
  21. 350 0
      Test10_24/assets/Scripts/PlayerCtl.ts
  22. 9 0
      Test10_24/assets/Scripts/PlayerCtl.ts.meta
  23. 28 0
      Test10_24/assets/Scripts/ShowTip.ts
  24. 9 0
      Test10_24/assets/Scripts/ShowTip.ts.meta
  25. 22 0
      Test10_24/assets/Scripts/UpdateLayer.ts
  26. 9 0
      Test10_24/assets/Scripts/UpdateLayer.ts.meta
  27. 23 0
      Test10_24/assets/Scripts/UpdateScore.ts
  28. 9 0
      Test10_24/assets/Scripts/UpdateScore.ts.meta
  29. 7 0
      Test10_24/package.json
  30. 3 0
      Test10_24/settings/v2/packages/builder.json
  31. 23 0
      Test10_24/settings/v2/packages/cocos-service.json
  32. 3 0
      Test10_24/settings/v2/packages/device.json
  33. 175 0
      Test10_24/settings/v2/packages/engine.json
  34. 23 0
      Test10_24/settings/v2/packages/information.json
  35. 3 0
      Test10_24/settings/v2/packages/program.json
  36. 18 0
      Test10_24/settings/v2/packages/project.json
  37. 9 0
      Test10_24/tsconfig.json

+ 2 - 0
Test10_24/.creator/asset-template/typescript/Custom Script Template Help Documentation.url

@@ -0,0 +1,2 @@
+[InternetShortcut]
+URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template

+ 24 - 0
Test10_24/.gitignore

@@ -0,0 +1,24 @@
+
+#///////////////////////////
+# Cocos Creator 3D Project
+#///////////////////////////
+library/
+temp/
+local/
+build/
+profiles/
+native
+#//////////////////////////
+# NPM
+#//////////////////////////
+node_modules/
+
+#//////////////////////////
+# VSCode
+#//////////////////////////
+.vscode/
+
+#//////////////////////////
+# WebStorm
+#//////////////////////////
+.idea/

BIN
Test10_24/assets/Circle.003.glb


+ 179 - 0
Test10_24/assets/Circle.003.glb.meta

@@ -0,0 +1,179 @@
+{
+  "ver": "2.3.13",
+  "importer": "gltf",
+  "imported": true,
+  "uuid": "1938524c-76dc-428f-9205-03dd62d52eb7",
+  "files": [],
+  "subMetas": {
+    "bcca5": {
+      "importer": "gltf-mesh",
+      "uuid": "1938524c-76dc-428f-9205-03dd62d52eb7@bcca5",
+      "displayName": "",
+      "id": "bcca5",
+      "name": "UnnamedMesh.mesh",
+      "userData": {
+        "gltfIndex": 0,
+        "triangleCount": 600
+      },
+      "ver": "1.1.1",
+      "imported": true,
+      "files": [
+        ".bin",
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "ea6e2": {
+      "importer": "gltf-material",
+      "uuid": "1938524c-76dc-428f-9205-03dd62d52eb7@ea6e2",
+      "displayName": "",
+      "id": "ea6e2",
+      "name": "DefaultMaterial.material",
+      "userData": {
+        "gltfIndex": 0
+      },
+      "ver": "1.0.14",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "453f2": {
+      "importer": "gltf-scene",
+      "uuid": "1938524c-76dc-428f-9205-03dd62d52eb7@453f2",
+      "displayName": "",
+      "id": "453f2",
+      "name": "Circle.003.prefab",
+      "userData": {
+        "gltfIndex": 0
+      },
+      "ver": "1.0.14",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "imageMetas": [],
+    "lods": {
+      "enable": false,
+      "hasBuiltinLOD": false,
+      "options": [
+        {
+          "screenRatio": 0.25,
+          "faceCount": 1
+        },
+        {
+          "screenRatio": 0.125,
+          "faceCount": 0.25
+        },
+        {
+          "screenRatio": 0.01,
+          "faceCount": 0.1
+        }
+      ]
+    },
+    "assetFinder": {
+      "meshes": [
+        "1938524c-76dc-428f-9205-03dd62d52eb7@bcca5"
+      ],
+      "skeletons": [],
+      "textures": [],
+      "materials": [
+        "1938524c-76dc-428f-9205-03dd62d52eb7@ea6e2"
+      ],
+      "scenes": [
+        "1938524c-76dc-428f-9205-03dd62d52eb7@453f2"
+      ]
+    },
+    "materials": {
+      "1938524c-76dc-428f-9205-03dd62d52eb7@ea6e2": {
+        "__type__": "cc.Material",
+        "_name": "",
+        "_objFlags": 0,
+        "__editorExtras__": {},
+        "_native": "",
+        "_effectAsset": {
+          "__uuid__": "c8f66d17-351a-48da-a12c-0212d28575c4",
+          "__expectedType__": "cc.EffectAsset"
+        },
+        "_techIdx": 0,
+        "_defines": [
+          {},
+          {},
+          {},
+          {},
+          {},
+          {}
+        ],
+        "_states": [
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          },
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          },
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          },
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          },
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          },
+          {
+            "rasterizerState": {},
+            "depthStencilState": {},
+            "blendState": {
+              "targets": [
+                {}
+              ]
+            }
+          }
+        ],
+        "_props": [
+          {},
+          {},
+          {},
+          {},
+          {},
+          {}
+        ]
+      }
+    }
+  }
+}

+ 11 - 0
Test10_24/assets/CubePrefab.meta

@@ -0,0 +1,11 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "acf41067-0a75-48ad-9667-fdede8c4c1ff",
+  "files": [],
+  "subMetas": {},
+  "userData": {
+    "isBundle": true
+  }
+}

+ 228 - 0
Test10_24/assets/CubePrefab/Cube.prefab

@@ -0,0 +1,228 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "Cube",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cube",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 7
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "SubMesh_0",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      }
+    ],
+    "_prefab": {
+      "__id__": 6
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_materials": [
+      {
+        "__uuid__": "c57f1ca7-14dd-45de-be3c-c23cd1ee6078",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 5
+    },
+    "_mesh": {
+      "__uuid__": "1938524c-76dc-428f-9205-03dd62d52eb7@bcca5",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "ceJliFpbxM76I7uOz4Yjfp"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b3Az2ZoHtGEYIDQGgUV1AJ",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.BoxCollider",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 8
+    },
+    "_material": null,
+    "_isTrigger": false,
+    "_center": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0.4,
+      "z": 0
+    },
+    "_size": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9bD1fljzxPZ6EemKUfFUKX"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "d6rlw6UnBKArEBwBx2UERH",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
Test10_24/assets/CubePrefab/Cube.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "243eb0c8-74c1-4e39-b0e6-7f227810ccfd",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "Cube"
+  }
+}

+ 9 - 0
Test10_24/assets/Materials.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "de02da47-625b-4d9d-b1e5-29bb70f90870",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 92 - 0
Test10_24/assets/Materials/grey.mtl

@@ -0,0 +1,92 @@
+{
+  "__type__": "cc.Material",
+  "_name": "",
+  "_objFlags": 0,
+  "__editorExtras__": {},
+  "_native": "",
+  "_effectAsset": {
+    "__uuid__": "c8f66d17-351a-48da-a12c-0212d28575c4",
+    "__expectedType__": "cc.EffectAsset"
+  },
+  "_techIdx": 0,
+  "_defines": [
+    {},
+    {},
+    {},
+    {},
+    {},
+    {}
+  ],
+  "_states": [
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    },
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    },
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    },
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    },
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    },
+    {
+      "rasterizerState": {},
+      "depthStencilState": {},
+      "blendState": {
+        "targets": [
+          {}
+        ]
+      }
+    }
+  ],
+  "_props": [
+    {
+      "mainColor": {
+        "__type__": "cc.Color",
+        "r": 124,
+        "g": 124,
+        "b": 124,
+        "a": 255
+      }
+    },
+    {},
+    {},
+    {},
+    {},
+    {}
+  ]
+}

+ 11 - 0
Test10_24/assets/Materials/grey.mtl.meta

@@ -0,0 +1,11 @@
+{
+  "ver": "1.0.21",
+  "importer": "material",
+  "imported": true,
+  "uuid": "c57f1ca7-14dd-45de-be3c-c23cd1ee6078",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {}
+}

+ 9 - 0
Test10_24/assets/Scene.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "f9c6e551-eab2-477e-a558-b4b270b6ab58",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 2117 - 0
Test10_24/assets/Scene/Main.scene

@@ -0,0 +1,2117 @@
+[
+  {
+    "__type__": "cc.SceneAsset",
+    "_name": "Main",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "scene": {
+      "__id__": 1
+    }
+  },
+  {
+    "__type__": "cc.Scene",
+    "_name": "Main",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 24
+      }
+    ],
+    "_active": true,
+    "_components": [],
+    "_prefab": {
+      "__id__": 53
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "autoReleaseAssets": false,
+    "_globals": {
+      "__id__": 54
+    },
+    "_id": "fdb2e3cc-9ecb-4d35-b1dc-7ea0353fc345"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Main Light",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": -0.06397656665577071,
+      "y": -0.44608233363525845,
+      "z": -0.8239028751062036,
+      "w": -0.3436591377065261
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": -117.894,
+      "y": -194.909,
+      "z": 38.562
+    },
+    "_id": "c0y6F5f+pAvI805TdmxIjx"
+  },
+  {
+    "__type__": "cc.DirectionalLight",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 250,
+      "b": 240,
+      "a": 255
+    },
+    "_useColorTemperature": false,
+    "_colorTemperature": 6550,
+    "_staticSettings": {
+      "__id__": 4
+    },
+    "_visibility": -325058561,
+    "_illuminanceHDR": 65000,
+    "_illuminance": 65000,
+    "_illuminanceLDR": 1.6927083333333335,
+    "_shadowEnabled": false,
+    "_shadowPcf": 0,
+    "_shadowBias": 0.00001,
+    "_shadowNormalBias": 0,
+    "_shadowSaturation": 1,
+    "_shadowDistance": 50,
+    "_shadowInvisibleOcclusionRange": 200,
+    "_csmLevel": 4,
+    "_csmLayerLambda": 0.75,
+    "_csmOptimizationMode": 2,
+    "_csmAdvancedOptions": false,
+    "_csmLayersTransition": false,
+    "_csmTransitionRange": 0.05,
+    "_shadowFixedArea": false,
+    "_shadowNear": 0.1,
+    "_shadowFar": 10,
+    "_shadowOrthoSize": 5,
+    "_id": "597uMYCbhEtJQc0ffJlcgA"
+  },
+  {
+    "__type__": "cc.StaticLightSettings",
+    "_baked": false,
+    "_editorOnly": false,
+    "_castShadow": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Main Camera",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 6
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0.113,
+      "y": 41.493,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": -0.5,
+      "y": 0.5,
+      "z": 0.4999999999999999,
+      "w": 0.5000000000000001
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": -89.99999999999999,
+      "y": 89.99999999999999,
+      "z": 0
+    },
+    "_id": "c9DMICJLFO5IeO07EPon7U"
+  },
+  {
+    "__type__": "cc.Camera",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 5
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_projection": 1,
+    "_priority": 0,
+    "_fov": 45,
+    "_fovAxis": 0,
+    "_orthoHeight": 10,
+    "_near": 1,
+    "_far": 1000,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 51,
+      "g": 51,
+      "b": 51,
+      "a": 255
+    },
+    "_depth": 1,
+    "_stencil": 0,
+    "_clearFlags": 14,
+    "_rect": {
+      "__type__": "cc.Rect",
+      "x": 0,
+      "y": 0,
+      "width": 1,
+      "height": 1
+    },
+    "_aperture": 19,
+    "_shutter": 7,
+    "_iso": 0,
+    "_screenScale": 1,
+    "_visibility": 1822425087,
+    "_targetTexture": null,
+    "_postProcess": null,
+    "_usePostProcess": false,
+    "_cameraType": -1,
+    "_trackingType": 0,
+    "_id": "7dWQTpwS5LrIHnc1zAPUtf"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Container",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 8
+      },
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 14
+      },
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 20
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 23
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "25GsfjPedDL6EcXFS31lN0"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Plane",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 9
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 2,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "32OQHHNf5CG6CqSU+Mdp45"
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "Plane<ModelComponent>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_materials": [
+      {
+        "__uuid__": "c57f1ca7-14dd-45de-be3c-c23cd1ee6078",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 10
+    },
+    "_mesh": {
+      "__uuid__": "1263d74c-8167-4928-91a6-4e2672411f47@2e76e",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": "ccClZ7hudP2bKkPZLybKTk"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cube",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 12
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -9.929,
+      "y": 5.459,
+      "z": -0.115
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 0.5,
+      "y": 10,
+      "z": 10.356
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "dcipPGkMNBX4pUvjJxEOox"
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "Cube<ModelComponent>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_materials": [
+      {
+        "__uuid__": "620b6bf3-0369-4560-837f-2a2c00b73c26",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 13
+    },
+    "_mesh": {
+      "__uuid__": "1263d74c-8167-4928-91a6-4e2672411f47@a804a",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": "eftPer8LxOobLAfC11mCwv"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cube-001",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 15
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -0.08,
+      "y": 5.459,
+      "z": 4.847
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0.7071067811865475,
+      "z": 0,
+      "w": 0.7071067811865476
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 0.5,
+      "y": 10,
+      "z": 20.25
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 89.99999999999999,
+      "z": 0
+    },
+    "_id": "21sRMnRPBKtpvRd64sUvNe"
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "Cube<ModelComponent>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 14
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_materials": [
+      {
+        "__uuid__": "620b6bf3-0369-4560-837f-2a2c00b73c26",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 16
+    },
+    "_mesh": {
+      "__uuid__": "1263d74c-8167-4928-91a6-4e2672411f47@a804a",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": "5f3hSKAaNC9YCLMEJtR9Qq"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cube-002",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 18
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 9.886,
+      "y": 5.459,
+      "z": -0.077
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 0.5,
+      "y": 10,
+      "z": 10.356
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "a7dRKdIvhIOoOPI5TxhVws"
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "Cube<ModelComponent>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 17
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_materials": [
+      {
+        "__uuid__": "620b6bf3-0369-4560-837f-2a2c00b73c26",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 19
+    },
+    "_mesh": {
+      "__uuid__": "1263d74c-8167-4928-91a6-4e2672411f47@a804a",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": "99/RMh31BCk4N74saMxUub"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cube-003",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 21
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -0.08,
+      "y": 5.459,
+      "z": -5.059
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0.7071067811865475,
+      "z": 0,
+      "w": 0.7071067811865476
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 0.5,
+      "y": 10,
+      "z": 20.25
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 89.99999999999999,
+      "z": 0
+    },
+    "_id": "18wgLpV7NIMKiZ8pGGehZt"
+  },
+  {
+    "__type__": "cc.MeshRenderer",
+    "_name": "Cube<ModelComponent>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 20
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_materials": [
+      {
+        "__uuid__": "620b6bf3-0369-4560-837f-2a2c00b73c26",
+        "__expectedType__": "cc.Material"
+      }
+    ],
+    "_visFlags": 0,
+    "bakeSettings": {
+      "__id__": 22
+    },
+    "_mesh": {
+      "__uuid__": "1263d74c-8167-4928-91a6-4e2672411f47@a804a",
+      "__expectedType__": "cc.Mesh"
+    },
+    "_shadowCastingMode": 0,
+    "_shadowReceivingMode": 1,
+    "_shadowBias": 0,
+    "_shadowNormalBias": 0,
+    "_reflectionProbeId": -1,
+    "_reflectionProbeBlendId": -1,
+    "_reflectionProbeBlendWeight": 0,
+    "_enabledGlobalStandardSkinObject": false,
+    "_enableMorph": true,
+    "_id": "0b6gBAsfRODIZa+0LKGEiQ"
+  },
+  {
+    "__type__": "cc.ModelBakeSettings",
+    "texture": null,
+    "uvParam": {
+      "__type__": "cc.Vec4",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 0
+    },
+    "_bakeable": false,
+    "_castShadow": false,
+    "_receiveShadow": false,
+    "_recieveShadow": false,
+    "_lightmapSize": 64,
+    "_useLightProbe": false,
+    "_bakeToLightProbe": true,
+    "_reflectionProbeType": 0,
+    "_bakeToReflectionProbe": true
+  },
+  {
+    "__type__": "72046Z5LyNMRZAewJA0pWcw",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 7
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "cubePrefab": [],
+    "_id": "ffPgI2rF5PcoGMGXxlrske"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Canvas",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 25
+      },
+      {
+        "__id__": 27
+      },
+      {
+        "__id__": 36
+      },
+      {
+        "__id__": 45
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 49
+      },
+      {
+        "__id__": 50
+      },
+      {
+        "__id__": 51
+      },
+      {
+        "__id__": 52
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 375,
+      "y": 817,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "ecU7Z6gW5HsIbYbLrv2S/s"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Camera",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 24
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 26
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 1000
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "ccREBs6JJKOYWxAb6ft+iD"
+  },
+  {
+    "__type__": "cc.Camera",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 25
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_projection": 0,
+    "_priority": 1073741824,
+    "_fov": 45,
+    "_fovAxis": 0,
+    "_orthoHeight": 817,
+    "_near": 1,
+    "_far": 2000,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_depth": 1,
+    "_stencil": 0,
+    "_clearFlags": 6,
+    "_rect": {
+      "__type__": "cc.Rect",
+      "x": 0,
+      "y": 0,
+      "width": 1,
+      "height": 1
+    },
+    "_aperture": 19,
+    "_shutter": 7,
+    "_iso": 0,
+    "_screenScale": 1,
+    "_visibility": 41943040,
+    "_targetTexture": null,
+    "_postProcess": null,
+    "_usePostProcess": false,
+    "_cameraType": -1,
+    "_trackingType": 0,
+    "_id": "28W+/xXKpJA4j2nk4/OwMK"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "LayerInfo",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 24
+    },
+    "_children": [
+      {
+        "__id__": 28
+      },
+      {
+        "__id__": 31
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 35
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -145.682,
+      "y": 719.4580000000001,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "d9Ea7Z1y1DDLGCX0E1sW5V"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Cur_Layer",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 27
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 29
+      },
+      {
+        "__id__": 30
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -26.420999999999992,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "f5eV2gvxFIXo+oUHsrJw4r"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 351.1328125,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "75HvkuAX5Ln4UMm+lYcnCd"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "当前已解锁          层",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "4bEvL4ISRE27bh9IL0d1Lj"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Layer_Num",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 27
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 32
+      },
+      {
+        "__id__": 33
+      },
+      {
+        "__id__": 34
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 51.083,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "d6DxSTMvdA+r8u8W2rmCsb"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 31
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 44.4921875,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "2c/8ZDhA5FmqT4wvaYqn/f"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 31
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 194,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "15",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "93hhKYWv9JZLUUUhvYOIgz"
+  },
+  {
+    "__type__": "06433If/k5KhoGxUpuszSOy",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 31
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_id": "e8FTgUBS1MR4/W9Q0Ns7Wg"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 27
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "18vHKJiBZPrL7POvvnISqg"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ScoreInfo",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 24
+    },
+    "_children": [
+      {
+        "__id__": 37
+      },
+      {
+        "__id__": 40
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 44
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 252.88099999999997,
+      "y": 717.2729999999999,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "b38cRSLg9AwbfxKB/Lldn8"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Score_Text",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 36
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 38
+      },
+      {
+        "__id__": 39
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -41.45600000000002,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "abVIFwt0lKE67Be+qexln+"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 120,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "10kvzwqeJNmKSXBNgzr+iV"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "得分:",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "62vbvBvN1KMrE88R3bsGkU"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Score_Num",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 36
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 41
+      },
+      {
+        "__id__": 42
+      },
+      {
+        "__id__": 43
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 38.48000000000002,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "9e9mAOwGpKFJKalw4nQxPU"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 40
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 22.24609375,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "53BDJ0XZlO96eToC6EBdZ/"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 40
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "0",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "dc22Pjd2JFLowkwi+L7o1H"
+  },
+  {
+    "__type__": "dd497raeslCSoYcYdVARXOz",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 40
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_id": "c6P0Kx8TdGoqB3M20bkaIb"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 36
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "c3dYMZIx9P45owGBmHA3TK"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ShowTip",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 24
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 46
+      },
+      {
+        "__id__": 47
+      },
+      {
+        "__id__": 48
+      }
+    ],
+    "_prefab": null,
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": "ffgxTeMP9Om5jDpxrDwWRm"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 84.51171875,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "76xo2o9TlJGaONWQ/pu3JJ"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "label",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": "40hEG2k7hAAqexBz06+zRr"
+  },
+  {
+    "__type__": "d6dbet+ogJEi7RiAphctMnC",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_id": "59jU7FJpBOwbHE+hFk1bkT"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 750,
+      "height": 1634
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": "13oOcxGjtBha4X5JhSvyZs"
+  },
+  {
+    "__type__": "cc.Canvas",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_cameraComponent": {
+      "__id__": 26
+    },
+    "_alignCanvasWithScreen": true,
+    "_id": "e69PsGqn5J4o+xbf0hDjxQ"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_alignMode": 1,
+    "_lockFlags": 0,
+    "_id": "3ewa5hRUZF0bFTRY833IVw"
+  },
+  {
+    "__type__": "c20e2ikMo9Kf77Zv/KaxSvj",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "__prefab": null,
+    "camera": null,
+    "Container": null,
+    "_id": "5764ZkKfRBe4G7v0jRDF2Q"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": null,
+    "asset": null,
+    "fileId": "fdb2e3cc-9ecb-4d35-b1dc-7ea0353fc345",
+    "instance": null,
+    "targetOverrides": null
+  },
+  {
+    "__type__": "cc.SceneGlobals",
+    "ambient": {
+      "__id__": 55
+    },
+    "shadows": {
+      "__id__": 56
+    },
+    "_skybox": {
+      "__id__": 57
+    },
+    "fog": {
+      "__id__": 58
+    },
+    "octree": {
+      "__id__": 59
+    },
+    "skin": {
+      "__id__": 60
+    },
+    "lightProbeInfo": {
+      "__id__": 61
+    },
+    "postSettings": {
+      "__id__": 62
+    },
+    "bakedWithStationaryMainLight": false,
+    "bakedWithHighpLightmap": false
+  },
+  {
+    "__type__": "cc.AmbientInfo",
+    "_skyColorHDR": {
+      "__type__": "cc.Vec4",
+      "x": 0.2,
+      "y": 0.5,
+      "z": 0.8,
+      "w": 0.520833125
+    },
+    "_skyColor": {
+      "__type__": "cc.Vec4",
+      "x": 0.2,
+      "y": 0.5,
+      "z": 0.8,
+      "w": 0.520833125
+    },
+    "_skyIllumHDR": 20000,
+    "_skyIllum": 20000,
+    "_groundAlbedoHDR": {
+      "__type__": "cc.Vec4",
+      "x": 0.2,
+      "y": 0.2,
+      "z": 0.2,
+      "w": 1
+    },
+    "_groundAlbedo": {
+      "__type__": "cc.Vec4",
+      "x": 0.2,
+      "y": 0.2,
+      "z": 0.2,
+      "w": 1
+    },
+    "_skyColorLDR": {
+      "__type__": "cc.Vec4",
+      "x": 0.452588,
+      "y": 0.607642,
+      "z": 0.755699,
+      "w": 0
+    },
+    "_skyIllumLDR": 0.8,
+    "_groundAlbedoLDR": {
+      "__type__": "cc.Vec4",
+      "x": 0.618555,
+      "y": 0.577848,
+      "z": 0.544564,
+      "w": 0
+    }
+  },
+  {
+    "__type__": "cc.ShadowsInfo",
+    "_enabled": false,
+    "_type": 0,
+    "_normal": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 1,
+      "z": 0
+    },
+    "_distance": 0,
+    "_planeBias": 1,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 76,
+      "g": 76,
+      "b": 76,
+      "a": 255
+    },
+    "_maxReceived": 4,
+    "_size": {
+      "__type__": "cc.Vec2",
+      "x": 1024,
+      "y": 1024
+    }
+  },
+  {
+    "__type__": "cc.SkyboxInfo",
+    "_envLightingType": 0,
+    "_envmapHDR": {
+      "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0",
+      "__expectedType__": "cc.TextureCube"
+    },
+    "_envmap": {
+      "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0",
+      "__expectedType__": "cc.TextureCube"
+    },
+    "_envmapLDR": {
+      "__uuid__": "6f01cf7f-81bf-4a7e-bd5d-0afc19696480@b47c0",
+      "__expectedType__": "cc.TextureCube"
+    },
+    "_diffuseMapHDR": null,
+    "_diffuseMapLDR": null,
+    "_enabled": true,
+    "_useHDR": true,
+    "_editableMaterial": null,
+    "_reflectionHDR": null,
+    "_reflectionLDR": null,
+    "_rotationAngle": 0
+  },
+  {
+    "__type__": "cc.FogInfo",
+    "_type": 0,
+    "_fogColor": {
+      "__type__": "cc.Color",
+      "r": 200,
+      "g": 200,
+      "b": 200,
+      "a": 255
+    },
+    "_enabled": false,
+    "_fogDensity": 0.3,
+    "_fogStart": 0.5,
+    "_fogEnd": 300,
+    "_fogAtten": 5,
+    "_fogTop": 1.5,
+    "_fogRange": 1.2,
+    "_accurate": false
+  },
+  {
+    "__type__": "cc.OctreeInfo",
+    "_enabled": false,
+    "_minPos": {
+      "__type__": "cc.Vec3",
+      "x": -1024,
+      "y": -1024,
+      "z": -1024
+    },
+    "_maxPos": {
+      "__type__": "cc.Vec3",
+      "x": 1024,
+      "y": 1024,
+      "z": 1024
+    },
+    "_depth": 8
+  },
+  {
+    "__type__": "cc.SkinInfo",
+    "_enabled": true,
+    "_blurRadius": 0.01,
+    "_sssIntensity": 3
+  },
+  {
+    "__type__": "cc.LightProbeInfo",
+    "_giScale": 1,
+    "_giSamples": 1024,
+    "_bounces": 2,
+    "_reduceRinging": 0,
+    "_showProbe": true,
+    "_showWireframe": true,
+    "_showConvex": false,
+    "_data": null,
+    "_lightProbeSphereVolume": 1
+  },
+  {
+    "__type__": "cc.PostSettingsInfo",
+    "_toneMappingType": 0
+  }
+]

+ 11 - 0
Test10_24/assets/Scene/Main.scene.meta

@@ -0,0 +1,11 @@
+{
+  "ver": "1.1.50",
+  "importer": "scene",
+  "imported": true,
+  "uuid": "fdb2e3cc-9ecb-4d35-b1dc-7ea0353fc345",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {}
+}

+ 9 - 0
Test10_24/assets/Scripts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "24de8029-3e44-4bee-b408-7d8c842b8b41",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 131 - 0
Test10_24/assets/Scripts/CreateMap.ts

@@ -0,0 +1,131 @@
+import { _decorator, assetManager, Component, Node, Prefab, instantiate, Vec3, Material, Color, MeshRenderer, color, find, tween } from 'cc';
+import { config,IdToName } from './CubeConfig';
+import { CubeInfo } from './CubeInfo';
+import { PlayerCtl } from './PlayerCtl';
+const { ccclass, property } = _decorator;
+
+@ccclass('CreateMap')
+export class CreateMap extends Component {
+    private resourcesLoadedCount: number = 0;
+    @property(Prefab)
+    private cubePrefab: Prefab=null;
+    private map: Node[][][] = [];
+    private MaxK = 3; // 最大纵深
+    private MaxI = 15; // 最大行
+    private MaxJ = 7; // 最大列
+
+    start() {
+        // 读取Json配置表
+        assetManager.loadBundle('CubePrefab', (err, bundle) => {
+            bundle.load('Cube', Prefab, (err, prefab) => {
+                if (err) {
+                    console.error(err);
+                    return;
+                }
+                this.cubePrefab = prefab;
+                this.checkAllResourcesLoaded();
+            });
+        });
+    }
+
+    update(deltaTime: number) { }
+
+    //检查资源加载
+    private checkAllResourcesLoaded(): void {
+        this.resourcesLoadedCount++;
+        if (this.resourcesLoadedCount === 1) {
+            this.initMap();
+        }
+    }
+
+    // 获取一个随机数
+    getRandomInt(min: number, max: number): number {
+        min = Math.ceil(min);
+        max = Math.floor(max);
+        return Math.floor(Math.random() * (max - min + 1)) + min;
+    }
+
+    // 根据配置表信息初始化地图
+    private initMap(): void {
+        this.map = new Array(this.MaxK).fill(0).map(() => new Array(this.MaxI).fill(0).map(() => new Array(this.MaxJ)));
+
+        for (let k = 0; k < this.MaxK; k++) {
+            for (let i = 0; i < this.MaxI; i++) {
+                for (let j = 0; j < this.MaxJ; j++) {
+                    let value = this.getRandomInt(0, 3);
+                    if (this.cubePrefab !== null) {
+                        let cube = instantiate(this.cubePrefab);
+                        cube.setPosition(new Vec3((i - 7), 16 - k, (3.05 - j)));
+                        cube.addComponent(CubeInfo);
+                        cube.getComponent(CubeInfo).setPos(k, i, j);
+                        cube.getComponent(CubeInfo).setId(value);
+                        cube.getComponent(CubeInfo).setColor(config[IdToName[value]].color);
+                        if (k != 0) {
+                            cube.getComponentInChildren(MeshRenderer).material.setProperty("albedo", Color.GRAY);
+                            cube.getComponent(CubeInfo).setLock(true);
+                        }
+                        else
+                        {
+                            cube.getComponentInChildren(MeshRenderer).material.setProperty("albedo", config[IdToName[value]].color);
+                            cube.getComponent(CubeInfo).setLock(false);
+                        }
+                        this.node.addChild(cube);
+                        this.map[k][i][j] = cube;
+                    }
+                }
+            }
+        }
+    }
+
+    public GetMap(): Node[][][] {
+        return this.map;
+    }
+
+    public GetMaxKIJ(): Vec3 {
+        return new Vec3(this.MaxK, this.MaxI, this.MaxJ);
+    }
+
+    //更新地图
+    public setMap(newMap: Node[][], index: number): void {
+        this.map[index] = newMap;
+        for (let i = 0; i < this.MaxI; i++) {
+            for (let j = 0; j < this.MaxJ; j++) {
+                if (newMap[i][j]) {
+                    // newMap[i][j].setPosition(new Vec3((i - 7), 16 - index, (3.05 - j)));
+
+                    // 移动一个方块到新位置
+                    tween(newMap[i][j])
+                        .to(0.5, { position: new Vec3((i - 7), 16 - index, (3.05 - j)) }, { easing: 'quadInOut' })
+                        .start();
+                }
+                // else {
+                //     // 如果新地图中某个位置没有节点,确保原来的节点也被销毁或者移除
+                //     if (this.map[index][i][j]) {
+                //         this.map[index][i][j].destroy();
+                //     }
+                // }
+            }
+        }
+    }
+
+    //解锁新层后改变颜色,颜色也需伴随移动改变
+    public changeColor(index: number) {
+        for (let k = 0; k < index; k++) {
+            if (k < this.MaxK && k !== 0) {
+                for (let i = 0; i < this.MaxI; i++) {
+                    for (let j = 0; j < this.MaxJ; j++) {
+                        if (this.map[k][i][j])
+                            if (this.map[k - 1][i][j] === null) {
+                                this.map[k][i][j].getComponentInChildren(MeshRenderer).material.setProperty("albedo", this.map[k][i][j].getComponent(CubeInfo).getColor());
+                                this.map[k][i][j].getComponent(CubeInfo).setLock(false);
+                            }
+                            else {
+                                this.map[k][i][j].getComponentInChildren(MeshRenderer).material.setProperty("albedo", Color.GRAY);
+                                this.map[k][i][j].getComponent(CubeInfo).setLock(true);
+                            }
+                    }
+                }
+            }
+        }
+    }
+}

+ 9 - 0
Test10_24/assets/Scripts/CreateMap.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "72046679-2f23-4c45-901e-c09034a56730",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 40 - 0
Test10_24/assets/Scripts/CubeConfig.ts

@@ -0,0 +1,40 @@
+import { _decorator, Color, Component, Node } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('CubeConfig')
+export class CubeConfig {
+    
+}
+
+export const IdToName: { [key: number]: string } = {
+    0:'redCube',
+    1:'blueCube',
+    2:'greenCube',
+    3:'yellowCube',
+};
+
+export const config={
+    redCube:{
+        id:0,
+        color:Color.RED
+    } as cube,
+    blueCube:{
+        id:1,
+        color:Color.BLUE
+    } as cube,
+    greenCube:{
+        id:2,
+        color:Color.GREEN
+    } as cube,
+    yellowCube:{
+        id:3,
+        color:Color.YELLOW
+    } as cube,
+}
+
+type cube={
+    id:number,
+    color:Color
+}
+
+

+ 9 - 0
Test10_24/assets/Scripts/CubeConfig.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "6810a745-c542-4f44-a491-8795a69d1849",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 63 - 0
Test10_24/assets/Scripts/CubeInfo.ts

@@ -0,0 +1,63 @@
+import { _decorator, Component, Node,Vec3,Color } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('CubeInfo')
+export class CubeInfo extends Component {
+    //方块在map中的坐标
+    private PosX:number=-1;
+    private PosY:number=-1;
+    private PosZ:number=-1;
+    private id:number=-1;//方块id
+    private color:Color;//方块颜色
+    private lock:boolean;//是否解锁
+    start() {
+
+    }
+
+    update(deltaTime: number) {
+        
+    }
+
+    public setPos(x:number,y:number,z:number)
+    {
+        this.PosX=x;
+        this.PosY=y;
+        this.PosZ=z;
+    }
+
+    public getPos():Vec3{
+        return new Vec3(this.PosX,this.PosY,this.PosZ);
+    }
+
+    public setId(value:number)
+    {
+        this.id=value;
+    }
+
+    public getId()
+    {
+        return this.id;
+    }
+
+    public getColor()
+    {
+        return this.color;
+    }
+
+    public setColor(value:Color)
+    {
+        this.color=value;
+    }
+
+    public getLock()
+    {
+        return this.lock;
+    }
+
+    public setLock(value:boolean)
+    {
+        this.lock=value;
+    }
+}
+
+

+ 9 - 0
Test10_24/assets/Scripts/CubeInfo.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "3046780a-c151-4cb9-b5c4-e27886d50a95",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 350 - 0
Test10_24/assets/Scripts/PlayerCtl.ts

@@ -0,0 +1,350 @@
+import { _decorator, Component, Node, PhysicsSystem, Camera, EventTouch, find, geometry, Layers, Vec3, Vec2 } from 'cc';
+import { CreateMap } from './CreateMap';
+import { CubeInfo } from './CubeInfo';
+import { UpdateLayer } from './UpdateLayer';
+import { UpdateScore } from './UpdateScore';
+import { ShowTip } from './ShowTip';
+const { ccclass, property } = _decorator;
+
+@ccclass('PlayerCtl')
+export class PlayerCtl extends Component {
+    @property(Camera)
+    private camera: Camera | null = null;
+    @property(Node)
+    private Container: Node = null;
+    private dir: number[][] = [[0, 0, 1], [0, 1, 0], [0, 0, -1], [0, -1, 0]];
+    private waitDestroy: Vec3[] = [];//等待销毁的所有节点
+    public layerIndex: number = 1;
+    private totalDestroy: number = 0;
+    private startTouchPos: Vec2 = null;
+    private moveDistance: number = 0;
+    private swipeThreshold: number = 10; // 滑动阈值
+    start() {
+        // 获取场景中的摄像头
+        const mainCameraNode = find('Main Camera');
+        if (mainCameraNode) {
+            this.camera = mainCameraNode.getComponent(Camera);
+        }
+        this.Container = find("Container");
+        // 监听触摸开始事件
+        this.node.on(Node.EventType.TOUCH_START, this.onTouchStart, this);
+        this.node.on(Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
+        this.node.on(Node.EventType.TOUCH_END, this.onTouchEnd, this);
+    }
+
+    onTouchStart(event: EventTouch) {
+        // 确保获取的是第一个触摸点
+        this.startTouchPos = event.getLocation();
+    }
+
+    //滑动屏幕让当前层类似于2048游戏中的上下左右移动,并不合并/消除
+
+    onTouchMove(event: EventTouch) {
+        const currentTouchPos = event.getLocation();
+        if (this.startTouchPos) {
+            const moveVector = new Vec2(currentTouchPos.x - this.startTouchPos.x, currentTouchPos.y - this.startTouchPos.y);
+            this.moveDistance = moveVector.length(); // 更新滑动距离
+            console.log("触摸屏幕");
+        }
+    }
+
+    onTouchEnd(event: EventTouch) {
+        if (!this.startTouchPos) return;
+
+        const currentTouchPos = event.getLocation();
+        const moveVector = new Vec2(currentTouchPos.x - this.startTouchPos.x, currentTouchPos.y - this.startTouchPos.y);
+
+        if (this.moveDistance > this.swipeThreshold) {
+            const direction = moveVector.normalize(); // 返回方向向量
+            this.handleSwipe(direction); // 处理滑动
+        }
+        else {
+            this.shootRay(event);
+        }
+
+        this.startTouchPos = null; // 重置触摸位置
+        this.moveDistance = 0; // 重置滑动距离
+    }
+
+    handleSwipe(direction: Vec2) {
+        // 确定滑动方向对应的索引
+        let directionIndex = -1;
+        const horizontalThreshold = 0.7;
+        const verticalThreshold = 0.7;
+
+        if (Math.abs(direction.x) > horizontalThreshold && Math.abs(direction.y) < verticalThreshold) {
+            // 主要是水平方向移动
+            if (direction.x < 0) directionIndex = 3; // 向右
+            else if (direction.x > 0) directionIndex = 1; // 向左
+        } else if (Math.abs(direction.y) > verticalThreshold && Math.abs(direction.x) < horizontalThreshold) {
+            // 主要是垂直方向移动
+            if (direction.y < 0) directionIndex = 2; // 向下
+            else if (direction.y > 0) directionIndex = 0; // 向上
+        }
+
+        if (directionIndex !== -1) {
+            this.moveLayer(directionIndex);
+        }
+    }
+
+    //已解锁的层都需要移动
+    moveLayer(directionIndex) {
+        let map = this.Container.getComponent(CreateMap).GetMap();
+        let maxKIJ = this.Container.getComponent(CreateMap).GetMaxKIJ();
+
+        for (let k = 0; k < this.layerIndex; k++) {
+            // 创建一个临时数组来存储移动后的方块状态
+            let tempMap = new Array(maxKIJ.y).fill(null).map(() => new Array(maxKIJ.z).fill(null));
+            // 左右移动
+            if (directionIndex === 3 || directionIndex === 1) {
+                for (let i = 0; i < maxKIJ.y; i++) {
+                    let newRow = [];
+                    for (let j = 0; j < maxKIJ.z; j++) {
+                        let cube = map[k][i][j];
+                        if (cube) {
+                            newRow.push({ cube });
+                        }
+                    }
+
+                    // 向左移动
+                    if (directionIndex === 3) {
+                        for (let j = 0; j < maxKIJ.z; j++) {
+                            let item = newRow.shift(); // 取出最左边的方块
+                            if (item) {
+                                tempMap[i][j] = item.cube;
+                                item.cube.getComponent(CubeInfo).setPos(k, i, j);
+                            }
+                        }
+                    }
+                    // 向右移动
+                    else {
+                        for (let j = maxKIJ.z - 1; j >= 0; j--) {
+                            let item = newRow.pop(); // 取出最右边的方块
+                            if (item) {
+                                tempMap[i][j] = item.cube;
+                                item.cube.getComponent(CubeInfo).setPos(k, i, j);
+                            }
+                        }
+                    }
+                }
+            }
+            // 上下移动
+            else if (directionIndex === 0 || directionIndex === 2) {
+                for (let j = 0; j < maxKIJ.z; j++) {
+                    let newCol = [];
+                    for (let i = 0; i < maxKIJ.y; i++) {
+                        let cube = map[k][i][j];
+                        if (cube) {
+                            newCol.push({ cube });
+                        }
+                    }
+
+                    // 向上移动
+                    if (directionIndex === 0) {
+                        for (let i = 0; i < maxKIJ.y; i++) {
+                            let item = newCol.shift(); // 取出最下面的方块
+                            if (item) {
+                                tempMap[i][j] = item.cube;
+                                item.cube.getComponent(CubeInfo).setPos(k, i, j);
+                            }
+                        }
+                    }
+                    // 向下移动
+                    else {
+                        for (let i = maxKIJ.y - 1; i >= 0; i--) {
+                            let item = newCol.pop(); // 取出最上面的方块
+                            if (item) {
+                                tempMap[i][j] = item.cube;
+                                item.cube.getComponent(CubeInfo).setPos(k, i, j);
+                            }
+                        }
+                    }
+                }
+            }
+
+            // 更新地图数据
+            this.Container.getComponent(CreateMap).setMap(tempMap, k);
+
+            //延时更新颜色
+            setTimeout(() => {
+                this.Container.getComponent(CreateMap).changeColor(this.layerIndex);
+            }, 250);
+
+        }
+    }
+
+    //发射射线检测判断物体是否可消除
+    shootRay(event: EventTouch) {
+        if (!this.camera) return;
+
+        let ray = new geometry.Ray();
+        this.camera.screenPointToRay(event.getLocationX(), event.getLocationY(), ray);
+
+        const index = Layers.nameToLayer('Cube');
+        const mask = 1 << index;
+        const maxDistance = 10000000;
+        const queryTrigger = true;
+
+        if (PhysicsSystem.instance.raycastClosest(ray, mask, maxDistance, queryTrigger)) {
+            const raycastClosestResult = PhysicsSystem.instance.raycastClosestResult;
+            const hitPoint = raycastClosestResult.hitPoint;
+            const hitNormal = raycastClosestResult.hitNormal;
+            const collider = raycastClosestResult.collider;
+            const distance = raycastClosestResult.distance;
+            console.log(collider.node.name);
+
+            //检测周边四个方向相同颜色的物体
+            this.checkNearCube(collider.node.getComponent(CubeInfo).getPos());
+
+            //拿取到所有连续颜色相同的物体,进行销毁
+            this.destroyCollectedCubes();
+
+
+        }
+        console.log('发射了射线');
+    }
+
+
+    //多层堆叠的map,但是要从2d视角检测当前方块四方向是否有连续同色,采用BFS
+    checkNearCube(Pos: Vec3) {
+        console.log(Pos);
+        let map = this.Container.getComponent(CreateMap).GetMap();
+        let maxKIJ = this.Container.getComponent(CreateMap).GetMaxKIJ();
+        let currentCubeInfo = map[Pos.x][Pos.y][Pos.z]?.getComponent(CubeInfo);
+        if (!currentCubeInfo || Pos.x >= this.layerIndex) return;
+        let cubeId = currentCubeInfo.getId();
+        let count = 0;
+        let toMarkAsNull: Vec3[] = [];
+        let queue: Vec3[] = [];
+        queue.push(Pos);
+        let visited: boolean[][][] = new Array(maxKIJ.x).fill(false).map(() => new Array(maxKIJ.y).fill(false).map(() => new Array(maxKIJ.z).fill(false)));
+
+        while (queue.length > 0) {
+            let currentPos = queue.shift();
+            if (!currentPos) continue;
+
+            let x = currentPos.x;
+            let y = currentPos.y;
+            let z = currentPos.z;
+
+            // 检查边界条件和是否已经访问过
+            if (x < 0 || x >= maxKIJ.x || y < 0 || y >= maxKIJ.y || z < 0 || z >= maxKIJ.z || visited[x][y][z]) continue;
+
+            let cubeInfo = map[x][y][z]?.getComponent(CubeInfo);
+
+            if (cubeInfo && cubeInfo.getId() === cubeId) {
+                count++;
+                toMarkAsNull.push(new Vec3(x, y, z));
+
+
+                this.dir.forEach(d => {
+                    let newX = x + d[0];
+                    let newY = y + d[1];
+                    let newZ = z + d[2];
+                    // 确保新的坐标在边界内,并且目标块不为空,并且是已解锁
+                    if (newX >= 0 && newX < maxKIJ.x && newY >= 0 && newY < maxKIJ.y && newZ >= 0 && newZ < maxKIJ.z && !visited[newX][newY][newZ] && map[newX][newY][newZ] && !map[newX][newY][newZ].getComponent(CubeInfo).getLock()) {
+                        queue.push(new Vec3(newX, newY, newZ));
+                    }
+                    //旁边无方块
+                    else {
+                        //判断更深层次
+                        for (let i = 1; i < this.layerIndex; i++) {
+                            if (newX + i >= 0 && newX + i < maxKIJ.x && newY >= 0 && newY < maxKIJ.y && newZ >= 0 && newZ < maxKIJ.z && !visited[newX + i][newY][newZ] && map[newX + i][newY][newZ] && !map[newX + i][newY][newZ].getComponent(CubeInfo).getLock()) {
+                                queue.push(new Vec3(newX + i, newY, newZ));
+                            }
+                        }
+                        //判断更浅层次
+                        for (let i = 1; i < this.layerIndex; i++) {
+                            if (newX - i >= 0 && newX - i < maxKIJ.x && newY >= 0 && newY < maxKIJ.y && newZ >= 0 && newZ < maxKIJ.z && !visited[newX - i][newY][newZ] && map[newX - i][newY][newZ] && !map[newX - i][newY][newZ].getComponent(CubeInfo).getLock()) {
+                                queue.push(new Vec3(newX - i, newY, newZ));
+                            }
+                        }
+
+                    }
+                });
+
+                visited[x][y][z] = true;
+            }
+        }
+
+        //连续颜色相同方块大于等于三个时,将每个方块放入待销毁数组
+        if (count >= 3) {
+            toMarkAsNull.forEach(pos => {
+                this.waitDestroy.push(new Vec3(pos.x, pos.y, pos.z));
+
+            });
+        }
+        // else {
+        //     // 如果数量小于 3,确保不进行错误操作
+        //     toMarkAsNull.forEach(pos => {
+        //         // 检查 map 中对应位置是否为 null,如果为 null 则不进行任何操作
+        //         if (map[pos.x] && map[pos.x][pos.y] && map[pos.x][pos.y][pos.z]) {
+        //             if (!this.waitDestroy.some(item => item === map[pos.x][pos.y][pos.z])) {
+        //                 // 保持方块状态不变
+        //             }
+        //         }
+        //     });
+        // }
+    }
+
+    //销毁方块
+    destroyCollectedCubes() {
+        if (this.waitDestroy.length >= 3) {
+            let map = this.Container.getComponent(CreateMap).GetMap();
+            this.waitDestroy.forEach(cube => {
+                if (cube) {
+                    map[cube.x][cube.y][cube.z].destroy();
+                    map[cube.x][cube.y][cube.z] = null;//销毁的方块所在位置置空
+                    if (cube.x + 1 === this.layerIndex) {
+                        this.totalDestroy++;
+                        console.log('当前层销毁了' + this.totalDestroy + '个');
+                    }
+                    // this.score += 10; // 假设每销毁一个块加10分
+                }
+            });
+            this.calculateScore(this.waitDestroy.length);
+        }
+
+
+        this.waitDestroy = []; // 清空等待销毁的块列表
+
+        if (this.totalDestroy / (15 * 7) > 0.8)//消除表层80%,解锁下层
+        {
+            let maxKIJ = this.Container.getComponent(CreateMap).GetMaxKIJ();
+            if (this.layerIndex < maxKIJ.x) {
+                this.layerIndex++;
+                UpdateLayer.instance.Update_Layer(this.layerIndex);
+                this.totalDestroy = 0;
+            }
+
+        }
+
+        //延时更新颜色
+        setTimeout(() => {
+            this.Container.getComponent(CreateMap).changeColor(this.layerIndex);
+        }, 250);
+    }
+
+
+    //加分
+    calculateScore(length: number) {
+        let score = 0;
+        //销毁后进行加分,3-5个为基础分每个方块5分,6-8个每个方块多算10分,9-15个每个方块多算20分,16个以上每个方块多算50分
+        if (length >= 3 && length <= 5) {
+            ShowTip.instance.Show_Tip('Good');
+            score = length * 5;
+        }
+        else if (length >= 6 && length <= 8) {
+            ShowTip.instance.Show_Tip('Great');
+            score = length * 15;
+        }
+        else if (length >= 9 && length <= 15) {
+            ShowTip.instance.Show_Tip('Unbeliveable');
+            score = length * 25;
+        } else if (length >= 16) {
+            ShowTip.instance.Show_Tip('excellent');
+            score = length * 55;
+        }
+        UpdateScore.instance.Update_Score(score);
+    }
+}

+ 9 - 0
Test10_24/assets/Scripts/PlayerCtl.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "c20e28a4-328f-4a7f-bed9-bff29ac52be3",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 28 - 0
Test10_24/assets/Scripts/ShowTip.ts

@@ -0,0 +1,28 @@
+import { _decorator, Component, Node, Label, tween } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('ShowTip')
+export class ShowTip extends Component {
+    public static instance: ShowTip = null;
+    start() {
+        ShowTip.instance = this;
+        tween(this.node).hide().start();
+        this.node.getComponent(Label).string = '0';
+        this.node.setScale(2,2);
+    }
+
+    update(deltaTime: number) {
+
+    }
+
+    public Show_Tip(str: string) {
+        tween(this.node).show().start();
+        this.node.getComponent(Label).string = str;
+        
+        setTimeout(() => {
+            tween(this.node).hide().start();
+        }, 1000);
+    }
+}
+
+

+ 9 - 0
Test10_24/assets/Scripts/ShowTip.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "d6dbeb7e-a202-448b-b462-02985cb4c9c2",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 22 - 0
Test10_24/assets/Scripts/UpdateLayer.ts

@@ -0,0 +1,22 @@
+import { _decorator, Component, Label, Node } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('UpdateLayer')
+export class UpdateLayer extends Component {
+    public static instance:UpdateLayer=null;
+
+    start() {
+        UpdateLayer.instance=this;
+        this.node.getComponent(Label).string='1';
+    }
+
+    update(deltaTime: number) {
+        
+    }
+
+    public Update_Layer(layer:number){
+        this.node.getComponent(Label).string=layer.toString();
+    }
+}
+
+

+ 9 - 0
Test10_24/assets/Scripts/UpdateLayer.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "0643321f-fe4e-4a86-81b1-529baccd23b2",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 23 - 0
Test10_24/assets/Scripts/UpdateScore.ts

@@ -0,0 +1,23 @@
+import { _decorator, Component, Node,Label } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('UpdateScore')
+export class UpdateScore extends Component {
+    public static instance:UpdateScore=null;
+    private totalScore:number=0;
+    start() {
+        UpdateScore.instance=this;
+        this.node.getComponent(Label).string='0';
+    }
+
+    update(deltaTime: number) {
+        
+    }
+
+    public Update_Score(score:number){
+        this.totalScore+=score;
+        this.node.getComponent(Label).string=this.totalScore.toString();
+    }
+}
+
+

+ 9 - 0
Test10_24/assets/Scripts/UpdateScore.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "dd497ada-7ac9-424a-861c-61d5404573b3",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 7 - 0
Test10_24/package.json

@@ -0,0 +1,7 @@
+{
+  "name": "Test10_24",
+  "uuid": "5e5cba71-eae7-456f-aacf-235a32840b0a",
+  "creator": {
+    "version": "3.8.4"
+  }
+}

+ 3 - 0
Test10_24/settings/v2/packages/builder.json

@@ -0,0 +1,3 @@
+{
+  "__version__": "1.3.8"
+}

+ 23 - 0
Test10_24/settings/v2/packages/cocos-service.json

@@ -0,0 +1,23 @@
+{
+  "__version__": "3.0.7",
+  "game": {
+    "name": "UNKNOW GAME",
+    "app_id": "UNKNOW",
+    "c_id": "0"
+  },
+  "appConfigMaps": [
+    {
+      "app_id": "UNKNOW",
+      "config_id": "3d1fc9"
+    }
+  ],
+  "configs": [
+    {
+      "app_id": "UNKNOW",
+      "config_id": "3d1fc9",
+      "config_name": "Default",
+      "config_remarks": "",
+      "services": []
+    }
+  ]
+}

+ 3 - 0
Test10_24/settings/v2/packages/device.json

@@ -0,0 +1,3 @@
+{
+  "__version__": "1.0.1"
+}

+ 175 - 0
Test10_24/settings/v2/packages/engine.json

@@ -0,0 +1,175 @@
+{
+  "__version__": "1.0.10",
+  "modules": {
+    "cache": {
+      "base": {
+        "_value": true
+      },
+      "gfx-webgl": {
+        "_value": true
+      },
+      "gfx-webgl2": {
+        "_value": false
+      },
+      "gfx-webgpu": {
+        "_value": false
+      },
+      "animation": {
+        "_value": true
+      },
+      "skeletal-animation": {
+        "_value": true
+      },
+      "3d": {
+        "_value": true
+      },
+      "meshopt": {
+        "_value": true
+      },
+      "2d": {
+        "_value": true
+      },
+      "xr": {
+        "_value": false
+      },
+      "ui": {
+        "_value": true
+      },
+      "particle": {
+        "_value": true
+      },
+      "physics": {
+        "_value": true,
+        "_option": "physics-ammo"
+      },
+      "physics-ammo": {
+        "_value": "physics-ammo"
+      },
+      "physics-cannon": {
+        "_value": false
+      },
+      "physics-physx": {
+        "_value": "physics-physx"
+      },
+      "physics-builtin": {
+        "_value": false
+      },
+      "physics-2d": {
+        "_value": true,
+        "_option": "physics-2d-box2d"
+      },
+      "physics-2d-box2d": {
+        "_value": true
+      },
+      "physics-2d-builtin": {
+        "_value": false
+      },
+      "intersection-2d": {
+        "_value": true
+      },
+      "primitive": {
+        "_value": true
+      },
+      "profiler": {
+        "_value": true
+      },
+      "occlusion-query": {
+        "_value": false
+      },
+      "geometry-renderer": {
+        "_value": false
+      },
+      "debug-renderer": {
+        "_value": true
+      },
+      "particle-2d": {
+        "_value": true
+      },
+      "audio": {
+        "_value": true
+      },
+      "video": {
+        "_value": true
+      },
+      "webview": {
+        "_value": true
+      },
+      "tween": {
+        "_value": true
+      },
+      "websocket": {
+        "_value": true
+      },
+      "websocket-server": {
+        "_value": false
+      },
+      "terrain": {
+        "_value": false
+      },
+      "light-probe": {
+        "_value": false
+      },
+      "tiled-map": {
+        "_value": true
+      },
+      "spine": {
+        "_value": true
+      },
+      "dragon-bones": {
+        "_value": true
+      },
+      "marionette": {
+        "_value": true
+      },
+      "procedural-animation": {
+        "_value": false
+      },
+      "custom-pipeline-post-process": {
+        "_value": false
+      },
+      "render-pipeline": {
+        "_value": true,
+        "_option": "custom-pipeline"
+      },
+      "custom-pipeline": {
+        "_value": true
+      },
+      "legacy-pipeline": {
+        "_value": false
+      }
+    },
+    "flags": {},
+    "includeModules": [
+      "2d",
+      "3d",
+      "animation",
+      "audio",
+      "base",
+      "custom-pipeline",
+      "debug-renderer",
+      "dragon-bones",
+      "gfx-webgl",
+      "intersection-2d",
+      "marionette",
+      "meshopt",
+      "particle",
+      "particle-2d",
+      "physics-2d-box2d",
+      "physics-ammo",
+      "primitive",
+      "profiler",
+      "skeletal-animation",
+      "spine",
+      "tiled-map",
+      "tween",
+      "ui",
+      "video",
+      "websocket",
+      "webview"
+    ],
+    "noDeprecatedFeatures": {
+      "value": false,
+      "version": ""
+    }
+  }
+}

+ 23 - 0
Test10_24/settings/v2/packages/information.json

@@ -0,0 +1,23 @@
+{
+  "__version__": "1.0.1",
+  "information": {
+    "customSplash": {
+      "id": "customSplash",
+      "label": "customSplash",
+      "enable": false,
+      "customSplash": {
+        "complete": false,
+        "form": "https://creator-api.cocos.com/api/form/show?"
+      }
+    },
+    "removeSplash": {
+      "id": "removeSplash",
+      "label": "removeSplash",
+      "enable": false,
+      "removeSplash": {
+        "complete": false,
+        "form": "https://creator-api.cocos.com/api/form/show?"
+      }
+    }
+  }
+}

+ 3 - 0
Test10_24/settings/v2/packages/program.json

@@ -0,0 +1,3 @@
+{
+  "__version__": "1.0.4"
+}

+ 18 - 0
Test10_24/settings/v2/packages/project.json

@@ -0,0 +1,18 @@
+{
+  "__version__": "1.0.6",
+  "general": {
+    "designResolution": {
+      "width": 750,
+      "height": 1634,
+      "fitHeight": true,
+      "fitWidth": false
+    }
+  },
+  "custom_joint_texture_layouts": [],
+  "layer": [
+    {
+      "name": "Cube",
+      "value": 1
+    }
+  ]
+}

+ 9 - 0
Test10_24/tsconfig.json

@@ -0,0 +1,9 @@
+{
+  /* Base configuration. Do not edit this field. */
+  "extends": "./temp/tsconfig.cocos.json",
+
+  /* Add your custom configuration here. */
+  "compilerOptions": {
+    "strict": false
+  }
+}