ConfigManager改全局单例

This commit is contained in:
2025-08-15 15:24:31 +08:00
parent 30e8effe86
commit 599c98f135
9 changed files with 361 additions and 376 deletions
+10 -70
View File
@@ -18,15 +18,12 @@
"_children": [
{
"__id__": 2
},
{
"__id__": 32
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 34
"__id__": 32
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -57,7 +54,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 35
"__id__": 33
},
"_id": "1a23cd3e-e487-4fd1-a415-346c2087464d"
},
@@ -1018,63 +1015,6 @@
},
"_id": "98EWBIubZPlZT+LFQb4IYI"
},
{
"__type__": "cc.Node",
"_name": "ConfigManager",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
}
],
"_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": "67ZXnZeExFXIu59phK6Xjz"
},
{
"__type__": "fbd43WrI4tK6KXuGCPuxhSR",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": null,
"_id": "57vDjH7bVD4JDeqZChrdP3"
},
{
"__type__": "cc.PrefabInfo",
"root": null,
@@ -1086,28 +1026,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 36
"__id__": 34
},
"shadows": {
"__id__": 37
"__id__": 35
},
"_skybox": {
"__id__": 38
"__id__": 36
},
"fog": {
"__id__": 39
"__id__": 37
},
"octree": {
"__id__": 40
"__id__": 38
},
"skin": {
"__id__": 41
"__id__": 39
},
"lightProbeInfo": {
"__id__": 42
"__id__": 40
},
"postSettings": {
"__id__": 43
"__id__": 41
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false