移除debug注释

This commit is contained in:
lujun 2023-03-21 23:04:26 +08:00
parent 76563d4c40
commit b27ec37d0c
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export class SortingGroup extends cc.Component {
} }
set sortingLayer(value:SortingLayer){ set sortingLayer(value:SortingLayer){
this._sortingLayer = value; this._sortingLayer = value;
// this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer);
} }
/** /**
@ -40,7 +40,7 @@ export class SortingGroup extends cc.Component {
} }
set orderInLayer(value:number){ set orderInLayer(value:number){
this._orderInLayer = value; this._orderInLayer = value;
// this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer); this.node.sortingPriority = Math.sign(this._sortingLayer) * (Math.abs(this._sortingLayer) * ORDER_IN_LAYER_MAX + this._orderInLayer);
} }
onEnable(){ onEnable(){

View File

@ -574,7 +574,7 @@
"node": { "node": {
"__id__": 8 "__id__": 8
}, },
"_enabled": false, "_enabled": true,
"_sortingLayer": 1, "_sortingLayer": 1,
"_orderInLayer": 0, "_orderInLayer": 0,
"_id": "95L6yHtudDn4DXi9XNXUWm" "_id": "95L6yHtudDn4DXi9XNXUWm"