技能碰撞改回物理碰撞

This commit is contained in:
panfudan
2025-03-30 16:59:40 +08:00
parent 67704725b2
commit 798a831227
85 changed files with 13428 additions and 7394 deletions

View File

@@ -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);