refactor(hero): 将is_atking状态从HeroViewComp移到HeroAttrsComp
将攻击状态is_atking从视图组件HeroViewComp移动到属性组件HeroAttrsComp,以保持状态管理的集中性
This commit is contained in:
@@ -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!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user