英雄成长基本完成
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user