技能继续

This commit is contained in:
2024-12-11 13:55:36 +08:00
parent 93e2f11274
commit eab71044d0
12 changed files with 703 additions and 1517 deletions

View File

@@ -13,7 +13,7 @@ export class MSCard extends ecs.Entity {
protected init() {
// this.addComponents<ecs.Comp>();
}
load(uuid:number=1001,parent:any) {
load(uuid:number=1001,parent:any,zone:number=0) {
var path = "game/gui/MSCard";
// var icon_path = "game/heros/herois"
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
@@ -26,7 +26,8 @@ export class MSCard extends ecs.Entity {
node.parent = parent
var msc = node.getComponent(MSCardComp)!;
msc.s_uuid= uuid
if(smc.mskill==uuid) msc.is_selected=true
if(zone==1) {msc.is_update=true }else{msc.is_update=false}
if(zone==2) {msc.is_select=true}else{msc.is_select=false}
this.add(msc)
}
/** 模块资源释放 */