一些边界处理
This commit is contained in:
@@ -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="";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user