Commit 55da5f92 authored by liujiangnan's avatar liujiangnan

feat: 释放资源的代码

parent 18ee85bb
...@@ -324,15 +324,18 @@ ...@@ -324,15 +324,18 @@
}, },
{ {
"__id__": 222 "__id__": 222
},
{
"__id__": 224
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 224 "__id__": 226
}, },
{ {
"__id__": 225 "__id__": 227
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10928,6 +10931,78 @@ ...@@ -10928,6 +10931,78 @@
"_atlas": null, "_atlas": null,
"_id": "51nBXWjLpNUIamFPlMloSh" "_id": "51nBXWjLpNUIamFPlMloSh"
}, },
{
"__type__": "cc.Node",
"_name": "Destroyer",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 225
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "86SJcyXClP7YiYvVyxTK6m"
},
{
"__type__": "8de31/QRmtJB70uxA6JCYx9",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 224
},
"_enabled": true,
"_id": "c8RSZKHRJO95/RfIMIkSA5"
},
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
......
cc.Class({
extends: cc.Component,
start() {
this.middleLayer = cc.find('middleLayer').getComponent('middleLayer');
},
onDestroy() {
console.log('喵喵喵: destroyer onDestroy');
this.middleLayer.clearDragonDisplayAssetList();
}
});
{
"ver": "1.0.8",
"uuid": "8de31fd0-466b-4907-bd2e-c40e89098c7d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment