技能碰撞改回物理碰撞
This commit is contained in:
@@ -46,6 +46,10 @@ export class CardComp extends CCComp {
|
||||
show.getChildByName("name").getComponent(Label).string=HeroInfo[uuid].name
|
||||
show.getChildByName("ap").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()
|
||||
show.getChildByName("hp").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].hp.toString()
|
||||
show.getChildByName("type").getChildByName("war").active=HeroInfo[uuid].type==0
|
||||
show.getChildByName("type").getChildByName("bow").active=HeroInfo[uuid].type==1
|
||||
show.getChildByName("type").getChildByName("mag").active=HeroInfo[uuid].type==2
|
||||
show.getChildByName("lv").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].lv.toString()
|
||||
var icon_path = "game/heros/herois"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = show.getChildByName("mask").getChildByName("icon").getComponent(Sprite);
|
||||
|
||||
Reference in New Issue
Block a user