重构暂存
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user