英雄成长基本完成

This commit is contained in:
walkpan
2024-12-08 00:15:59 +08:00
parent c8e4190f18
commit 02f1c99d7c
10 changed files with 9689 additions and 6384 deletions

View File

@@ -27,11 +27,6 @@ const { ccclass, property } = _decorator;
@ccclass('BossViewComp') // 定义为 Cocos Creator 组件
@ecs.register('BossView', false) // 定义为 ECS 组件
export class BossViewComp extends CCComp {
@property(Material)
hitFlashMaterial: Material;
orginalFlashMaterial: Material;
@property(Material)
atkMaterial: Material;
sprite: Sprite;
/** 角色动画 */
@@ -127,7 +122,7 @@ export class BossViewComp extends CCComp {
if(this.hp <= 0 ){
return
}
this.hp_change(skill.atk);
this.hp_change(skill.ap);
}
}
}