Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ_lite
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_NJ_lite
Commits
96e30b20
Commit
96e30b20
authored
Sep 28, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 回复原状态
parent
b9c7f3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
76 deletions
+18
-76
middleLayerBase.ts
assets/middleLayer_for_NJ_lite/script/middleLayerBase.ts
+18
-76
No files found.
assets/middleLayer_for_NJ_lite/script/middleLayerBase.ts
View file @
96e30b20
...
@@ -184,20 +184,19 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -184,20 +184,19 @@ export abstract class middleLayerBase extends cc.Component {
// return;
// return;
// }
// }
this
.
assetList
=
[];
// this.assetList = [];
this
.
textureList
=
[];
// this.textureList = [];
this
.
assetObj
=
{};
// this.assetObj = {};
this
.
atlasList
=
[];
// this.atlasList = [];
this
.
nodeList
=
[];
// this.nodeList = [];
console
.
log
(
'
汪汪汪: getDragonDisplayAssetList
'
);
// console.log('汪汪汪: getDragonDisplayAssetList');
this
.
getDragonDisplayAssetList
(
cc
.
find
(
'
Canvas
'
));
// this.getDragonDisplayAssetList(cc.find('Canvas'));
console
.
log
(
'
喵喵喵1:
'
+
this
.
nodeList
.
length
);
// console.log('喵喵喵1: ' + this.nodeList.length);
console
.
log
(
'
喵喵喵2:
'
+
this
.
atlasList
.
length
);
// console.log('喵喵喵2: ' + this.atlasList.length);
console
.
log
(
'
喵喵喵3:
'
+
this
.
assetList
.
length
);
// console.log('喵喵喵3: ' + this.assetList.length);
console
.
log
(
'
喵喵喵4:
'
+
this
.
textureList
.
length
);
// console.log('喵喵喵4: ' + this.textureList.length);
this
.
clearDragonDisplayAssetList3
();
await
asyncDelay
(
5
);
this
.
loadBundleLock
=
true
;
// 加锁
this
.
loadBundleLock
=
true
;
// 加锁
this
.
currentBundleInfo
=
{
sceneName
,
version
,
bondleUrl
};
this
.
currentBundleInfo
=
{
sceneName
,
version
,
bondleUrl
};
...
@@ -233,11 +232,11 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -233,11 +232,11 @@ export abstract class middleLayerBase extends cc.Component {
middleLayer
.
scale
=
canvas
.
width
/
middleLayer
.
width
;
middleLayer
.
scale
=
canvas
.
width
/
middleLayer
.
width
;
const
destroyer
=
cc
.
instantiate
(
cc
.
find
(
'
middleLayer/Destroyer
'
));
//
const destroyer = cc.instantiate(cc.find('middleLayer/Destroyer'));
// if (destroyer) {
//
//
if (destroyer) {
destroyer
.
parent
=
cc
.
find
(
'
Canvas
'
);
//
destroyer.parent = cc.find('Canvas');
destroyer
.
active
=
true
;
//
destroyer.active = true;
// }
//
//
}
...
@@ -430,33 +429,6 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -430,33 +429,6 @@ export abstract class middleLayerBase extends cc.Component {
}
}
// this.assetList = randomSortByArr(this.assetList);
// this.atlasList[0] = this.atlasList[7];
// this.assetList[0] = this.assetList[7];
// this.nodeList[0] = this.nodeList[7]
// this.textureList[0] = this.textureList[7];
// this.atlasList.length = this.assetList.length = this.nodeList.length = this.textureList.length = 1;
// [ ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// cc.assetManager.releaseAsset(asset);
// });
// [ ...this.atlasList, ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// while (asset?.refCount > 0) {
// asset.decRef();
// }
// // cc.assetManager.releaseAsset(asset);
// // asset.destroy();
// });
const
setParentVisible
=
(
n
)
=>
{
const
setParentVisible
=
(
n
)
=>
{
n
.
active
=
true
;
n
.
active
=
true
;
...
@@ -518,36 +490,6 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -518,36 +490,6 @@ export abstract class middleLayerBase extends cc.Component {
// this.textureList.forEach(texture => {
// // console.log('texture_uuid: ', texture._uuid);
// // console.log('texture: ', texture);
// // while (texture?.refCount > 0) {
// // texture.decRef();
// // }
// cc.assetManager.releaseAsset(texture);
// texture.destroy();
// });
// [ ...this.atlasList, ...this.assetList ].forEach(asset => {
// console.log('asset_uuid: ', asset._uuid);
// console.log('asset: ', asset);
// // asset.decRef();
// // while (asset?.refCount > 0) {
// // asset.decRef();
// // }
// cc.assetManager.releaseAsset(asset);
// asset.destroy();
// });
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment