添加role 删除多余地图文件

This commit is contained in:
pan@work
2024-08-23 10:35:15 +08:00
parent a97f6bfa80
commit e0431b6fad
55 changed files with 2323 additions and 3343 deletions

View File

@@ -26,12 +26,13 @@ export default class EntityLayer extends Component {
}
protected start(): void {
console.log("EntityLayer start",this)
// console.log("EntityLayer start",this)
}
public clear() {
this.node.children.forEach(n => {
});
}
}

View File

@@ -2,8 +2,6 @@ import { Component, Layers, Node, Sprite, SpriteFrame, Texture2D, UITransform, V
import { oops } from '../../../../../../../extensions/oops-plugin-framework/assets/core/Oops';
import { LayerUtil } from '../../../../../../../extensions/oops-plugin-framework/assets/core/utils/LayerUtil';
import { smc } from '../../../../common/SingletonModuleComp';
import { MapLoadModel } from '../base/MapLoadModel';
import MapParams from '../base/MapParams';
const { ccclass, property } = _decorator;
@@ -19,7 +17,7 @@ export default class MapLayer extends Component {
@property(Sprite)
private bgImg: Sprite | null = null;
public init(mapParams: MapParams): void {
public init(): void {
this.getComponent(UITransform)!.width = this.width;
this.getComponent(UITransform)!.height = this.height;
}

View File

@@ -47,7 +47,7 @@ export default class SkillLayer extends Component {
}
start(){
console.log("SkillLayer start")
// console.log("SkillLayer start")
}
public clear() {