技能继续
This commit is contained in:
@@ -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)
|
||||
}
|
||||
/** 模块资源释放 */
|
||||
|
||||
Reference in New Issue
Block a user