修复一些状态问题
This commit is contained in:
@@ -62,6 +62,7 @@ public void Initialize()
|
||||
|
||||
public void OnEnter()
|
||||
{
|
||||
SetInitialTargetState(targets[1]);
|
||||
mouseFollowAndZoom.SetIsActive(true);
|
||||
mouseFollowAndZoom.SetIsLock(false);
|
||||
// 进入视图时的逻辑
|
||||
@@ -78,7 +79,8 @@ public void Initialize()
|
||||
}
|
||||
|
||||
public void OnExit()
|
||||
{
|
||||
{
|
||||
eyeStateEffect?.CleanupEffect(CurrentTarget);
|
||||
mouseFollowAndZoom.SetIsActive(false);
|
||||
// 离开视图时的逻辑
|
||||
Debug.Log("EyeView exited.");
|
||||
|
||||
@@ -158,7 +158,7 @@ peipei:我们去手术吧
|
||||
===
|
||||
title: 手术
|
||||
tags:
|
||||
position: -235,-768
|
||||
position: -235,-771
|
||||
---
|
||||
<<wait_for_ClueBoard_close ClueBoard>>
|
||||
<<set_scissors_mode LineManager true>>
|
||||
@@ -179,6 +179,7 @@ position: -235,-768
|
||||
peipei: 呼……
|
||||
peipei: 好像……好多了。
|
||||
me: 还没结束…我们进视觉和UF模块复查一下吧。
|
||||
<<set_EyeState EyeManager "CannotImagineColor">>
|
||||
<<set $eyeTargetTriggerCount=0>>
|
||||
<<set $isFinishedEyeCheck=1>>
|
||||
<<set $isFinishedUFCheck=1>>
|
||||
@@ -193,15 +194,14 @@ position: -235,-768
|
||||
|
||||
title: 流程结束
|
||||
tags:
|
||||
position: 265,-184
|
||||
position: 261,-400
|
||||
---
|
||||
me:看起来应该没什么问题了
|
||||
me:再见佩佩
|
||||
===
|
||||
|
||||
|
||||
title: IntoEyeView
|
||||
tags:
|
||||
position: 1962,-2069
|
||||
position: 1965,-2069
|
||||
---
|
||||
<<if $isFinishedEyeCheck==-1>>
|
||||
me:这里似乎没什么可看的了
|
||||
|
||||
@@ -28,7 +28,7 @@ public class ClueBoardManager : MonoBehaviour
|
||||
public IEnumerator WaitForClose()
|
||||
{
|
||||
// 这里等待关闭按钮点击事件
|
||||
while (!isBoardOpen)
|
||||
while (isBoardOpen)
|
||||
{
|
||||
yield return null; // 每帧检查一次
|
||||
}
|
||||
|
||||
@@ -45,8 +45,26 @@ public class OscilloscopeController : MonoBehaviour
|
||||
DeepInButton.GetComponent<Button>().onClick.AddListener(DeepIn);
|
||||
screenText.text="";
|
||||
currentSocket=null;
|
||||
if(plug!=null)
|
||||
{
|
||||
plug.OnPlugInserted += HandlePlugInserted;
|
||||
plug.OnPlugRemoved += HandlePlugRemoved;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
private void HandlePlugInserted(Plug plug)
|
||||
{
|
||||
// 这里可以处理插入后的波形显示逻辑
|
||||
Debug.Log("Plug inserted into the socket, starting waveform display.");
|
||||
}
|
||||
|
||||
private void HandlePlugRemoved()
|
||||
{
|
||||
// 这里可以处理移除后的清除波形逻辑
|
||||
screenText.text="";
|
||||
Debug.Log("Plug removed from the socket, stopping waveform display.");
|
||||
}
|
||||
|
||||
public void DeepIn()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user