一些边界处理

This commit is contained in:
2024-10-18 22:01:32 +08:00
parent 03647530c6
commit 5e80431b0e
@@ -64,6 +64,8 @@ public class OscilloscopeController : MonoBehaviour
private IEnumerator ScanForError(string trimmedString)
{
phaseSlider.interactable=false;
plug.Disable_plugInput();
scanLine.gameObject.SetActive(true);
// 设置扫描线初始位置(左侧)
@@ -110,7 +112,13 @@ private IEnumerator ScanForError(string trimmedString)
screenText.text="找到错误,可以开始深入";
yield return new WaitForSeconds(1f);
transitionManager.SetViewAvailability(trimmedString, true);
DeepInButton.interactable=false;
StartCoroutine(transitionManager.StartTransitionCoroutine(trimmedString));
yield return new WaitForSeconds(0.5f);
DeepInButton.interactable=true;
phaseSlider.interactable=true;
screenText.text="";
plug.Enable_plugInput();
break;
}
@@ -130,6 +138,9 @@ private IEnumerator ScanForError(string trimmedString)
scanLine.gameObject.SetActive(false);
scanLine.startColor = Color.white;
scanLine.endColor = Color.white;
phaseSlider.interactable=true;
plug.Enable_plugInput();
screenText.text="";
}