fix(fix-system): 切割进入时支持 Cut Text 闪烁
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -99,7 +99,7 @@ namespace AibisDream
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator StartCutting(BodyModule targetModule)
|
||||
public IEnumerator StartCutting(BodyModule targetModule, bool flickerCutTextOnEnter = false)
|
||||
{
|
||||
// 检查参数
|
||||
if (targetModule == null)
|
||||
@@ -121,6 +121,13 @@ namespace AibisDream
|
||||
|
||||
// 停止之前的切割
|
||||
StopCutting();
|
||||
|
||||
// StopCutting 会将 Cut Text 恢复为可见,因此需要在调用后同步进入状态。
|
||||
_targetModule.SetCutTextVisible(flickerCutTextOnEnter);
|
||||
if (flickerCutTextOnEnter)
|
||||
{
|
||||
_targetModule.StartCutTextFlicker();
|
||||
}
|
||||
|
||||
// 设置切割模式
|
||||
isCuttingMode = true;
|
||||
@@ -322,4 +329,4 @@ namespace AibisDream
|
||||
_targetSpriteRenderer = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user