joywayer
087aa96ca6
@
fix(ai): EnemyAiBrain 在 Start 构造 runtime,修入口态 locomotion NRE
入口状态 OnEnter 会声明 locomotion 意图(x.Locomotion.SetMode),但原在 Awake
构造 AiRuntime 时 EnterInitial 立即触发该 OnEnter——此时 EnemyBase.Awake 可能
尚未发现 _locomotion(两组件 Awake 顺序未定),导致 x.Locomotion 为 null 抛 NRE,
brain 未建成 runtime。改在 Start 构造(所有 Awake 先于任一 Start),保证依赖就绪。
根因修复,非 null 兜底。P3 PlayMode 验证发现。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@
2026-07-10 13:30:46 +08:00
..
2026-07-10 12:17:49 +08:00
2026-07-03 15:03:27 +08:00
2026-07-10 13:30:46 +08:00
2026-07-03 15:00:59 +08:00
2026-07-10 12:14:53 +08:00
2026-07-03 14:58:52 +08:00
2026-07-10 10:05:14 +08:00
2026-07-03 16:51:47 +08:00
2026-07-10 12:17:49 +08:00
2026-07-09 15:10:39 +08:00