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:14:53 +08:00
2026-05-15 14:47:24 +08:00
2026-05-17 07:56:12 +08:00
2026-06-05 18:41:33 +08:00
2026-06-12 11:48:37 +08:00
2026-06-11 14:40:37 +08:00
2026-05-15 14:47:24 +08:00
2026-06-10 14:14:08 +08:00
2026-07-10 12:24:45 +08:00
2026-07-10 13:30:46 +08:00
2026-05-25 11:54:37 +08:00
2026-06-11 14:40:37 +08:00
2026-06-12 11:48:37 +08:00
2026-06-11 14:40:37 +08:00
2026-06-05 18:41:33 +08:00
2026-06-06 09:00:11 +08:00
2026-05-22 22:03:32 +08:00
2026-06-12 11:48:37 +08:00
2026-06-08 11:26:17 +08:00
2026-06-07 11:49:55 +08:00
2026-06-08 11:26:17 +08:00
2026-05-25 11:54:37 +08:00
2026-06-07 11:49:55 +08:00
2026-05-25 11:54:37 +08:00
2026-06-10 14:14:08 +08:00
2026-06-05 18:41:33 +08:00
2026-06-12 11:26:02 +08:00
2026-07-03 13:56:11 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-06-05 18:41:33 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00
2026-05-15 14:47:24 +08:00