refactor(hero): 统一角色状态初始化逻辑并调整UI布局

1. 将HeroSpine和HeroViewComp的默认状态从"idle"改为空字符串
2. 替换HeroViewComp中直接调用as.idle()为status_change方法
3. 调整role_controller预制体的UI元素位置和尺寸,适配240宽度布局
This commit is contained in:
panFD
2026-06-12 20:28:33 +08:00
parent 488b1632ef
commit 7aa8a47a65
4 changed files with 2515 additions and 2374 deletions

View File

@@ -8,7 +8,7 @@ export class HeroSpine extends Component {
@property(HeroAnmComp)
anm: HeroAnmComp = null;
status:string="idle";
status:string="";
onLoad() {
// 角色控制组件