feat(hero): 添加受击闪光效果并重构相关代码

新增FlashSprite组件实现受击闪光效果
重构HeroAnmComp和HeroViewComp以支持闪光效果
更新多个英雄prefab以包含闪光材质和组件
This commit is contained in:
2025-11-15 11:15:30 +08:00
parent 4af9a6fd9e
commit 46a779633a
28 changed files with 2800 additions and 862 deletions

View File

@@ -66,6 +66,9 @@ export class HeroSpine extends Component {
break
}
}
do_atked(){
this.anm.atked()
}
dead(){
// console.log("do dead");
this.anm.dead()