fix(bodymodule): 切割时按舱外状态同步CutText
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -99,7 +99,7 @@ namespace AibisDream
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator StartCutting(BodyModule targetModule, bool flickerCutTextOnEnter = false)
|
||||
public IEnumerator StartCutting(BodyModule targetModule)
|
||||
{
|
||||
// 检查参数
|
||||
if (targetModule == null)
|
||||
@@ -122,12 +122,8 @@ namespace AibisDream
|
||||
// 停止之前的切割
|
||||
StopCutting();
|
||||
|
||||
// StopCutting 会将 Cut Text 恢复为可见,因此需要在调用后同步进入状态。
|
||||
_targetModule.SetCutTextVisible(flickerCutTextOnEnter);
|
||||
if (flickerCutTextOnEnter)
|
||||
{
|
||||
_targetModule.StartCutTextFlicker();
|
||||
}
|
||||
// StopCutting 会打断 CutText 闪烁;按舱外 ModuleCondition 重新同步亮灭。
|
||||
_targetModule.ApplyCutTextFromCondition();
|
||||
|
||||
// 设置切割模式
|
||||
isCuttingMode = true;
|
||||
|
||||
Reference in New Issue
Block a user