boss需要改用spine 动画 先放一放

This commit is contained in:
2024-09-19 16:22:39 +08:00
parent 29a6f6a8b6
commit 3c9fab6889
43 changed files with 2179 additions and 2679 deletions

View File

@@ -35,8 +35,7 @@ export class RoleViewComp extends CCComp {
atkMaterial: Material;
sprite: Sprite;
/** 角色动画 */
@property(Node)
BoxRang:Node =null!
as:RoleSpine =null!;
is_role:boolean = false;
@@ -103,18 +102,8 @@ export class RoleViewComp extends CCComp {
// this.node.getChildByName("atk").setScale(this.scale,1);
// this.node.getChildByName("atk").getComponent(Label).string = this.atk.toString();
// this.node.getChildByName("hp_max").setScale(this.scale,1);
// this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString();
// this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString();
// this.orginalFlashMaterial = this.sprite.getRenderMaterial(0);
// this.BoxRang.getComponent(RoleRangComp).box_group = this.box_group;
// this.BoxRang.getComponent(RoleRangComp).atk_range = this.atk_range
// this.BoxRang.getComponent(RoleRangComp).offset_x = this.scale*smc.skills[this.skill_uuid].dis/3;
// console.log("monseter ",this.BoxRang);
// 注册单个碰撞体的回调函数
let collider = this.getComponent(Collider2D);
collider.group = this.box_group;