perf: 优化底图可走路径

This commit is contained in:
richarjiang
2025-10-20 09:22:47 +08:00
parent 93d5473c88
commit 8f4200a7a3
10 changed files with 688 additions and 116 deletions

View File

@@ -939,6 +939,7 @@ export class PlayerController extends Component {
// 如果是攻击 guai_2 并且成功,创建道具飞向 player 的动画
if (otherCollider.node.name === 'guai_2') {
this.switchAnimation('stand'); // 玩家站立
await this.createPropsFlyToPlayerAnimation();
}