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 13:30:46 +08:00
2026-06-11 13:28:04 +08:00
2026-05-15 14:47:24 +08:00
2026-05-23 08:48:48 +08:00
2026-05-15 14:47:24 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00
2026-05-23 08:48:48 +08:00
2026-06-09 10:41:43 +08:00
2026-05-23 08:48:48 +08:00
2026-05-22 13:25:40 +08:00
2026-05-22 15:07:43 +08:00
2026-07-10 12:21:28 +08:00
2026-06-06 09:00:11 +08:00
2026-05-08 11:04:00 +08:00
2026-05-15 14:47:24 +08:00
2026-05-08 11:04:00 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-08 11:04:00 +08:00
2026-05-23 08:48:48 +08:00
2026-05-15 14:47:24 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00
2026-06-05 18:41:33 +08:00
2026-05-23 08:48:48 +08:00
2026-05-08 11:04:00 +08:00
2026-05-15 14:47:24 +08:00
2026-05-13 09:19:54 +08:00
2026-05-15 14:47:24 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00
2026-05-08 11:04:00 +08:00