refactor(hero): 将is_atking状态从HeroViewComp移到HeroAttrsComp

将攻击状态is_atking从视图组件HeroViewComp移动到属性组件HeroAttrsComp,以保持状态管理的集中性
This commit is contained in:
2025-10-30 16:11:07 +08:00
parent 56f45a7bb4
commit bdcc606e02
3 changed files with 5 additions and 5 deletions

View File

@@ -30,8 +30,6 @@ export class HeroViewComp extends CCComp {
status:String = "idle"
scale: number = 1; // 显示方向
box_group:number = BoxSet.HERO; // 碰撞组
is_atking:boolean = false; // 是否正在攻击
// ==================== UI 节点引用 ====================
private top_node: Node = null!;