fix: BodyModule可能的注册失败问题

This commit is contained in:
2026-07-18 17:28:06 +08:00
parent 7476263411
commit 0dc1001723
3 changed files with 13 additions and 15 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using AibisDream.FixSystem;
@@ -88,8 +88,7 @@ namespace AibisDream
return false;
}
if (_session.Phase != GameSessionPhase.MainMenu
|| !TryAcquireCommand(SessionCommandKind.Start))
if (!TryAcquireCommand(SessionCommandKind.Start))
{
return false;
}
@@ -306,6 +305,7 @@ namespace AibisDream
{
try
{
// 设置当前状态
_session.ResetRuntimeState();
if (!TrySetPhase(GameSessionPhase.Starting))
{