重构暂存

This commit is contained in:
2024-12-23 15:32:54 +08:00
parent 58714dcb2d
commit 4e08fda3e6
10 changed files with 993 additions and 553 deletions
@@ -49,7 +49,7 @@ namespace AibisDream.FixSystem
_scanLine.SetScreenSize(_screen.bounds.size.x, _screen.bounds.size.y);
_screenText.text = "";
_deepinButton.OnButtonDown += StartScan;
_deepinButton.OnButtonDown += HandleDeepInButtonClick;
_scanLine.ScanErrorEvent += OnScanSuccess;
}
@@ -91,6 +91,11 @@ namespace AibisDream.FixSystem
_scanLine.CloseScan();
}
public void ChangeDeepInButtonState(bool state)
{
_deepinButton.SetActive(state);
}
/// <summary>
/// 调整相位
/// </summary>
@@ -112,12 +117,25 @@ namespace AibisDream.FixSystem
float spikeX = _waveformLine.GetSpikeX();
StartCoroutine(_scanLine.ScanForError(spikeX));
}
public void HandleDeepInButtonClick()
{
if(_bodyModuleSystem.CableSystem.curBodyModule.data.ignoreWaveCheck==true)
{
_bodyModuleSystem.HandleDeepIn();
}
else
{
StartScan();
}
}
/// <summary>
/// 扫描成功后
/// </summary>
public void OnScanSuccess()
{
{
_bodyModuleSystem.HandleDeepIn();
_ = CommonUtil.Delay(2000, StopWave);
}