Fix Point2 outline visual script bug, show Shose without outline at start, only show point2 after camera3 switches, and fix Shose undo removing camera reversion
This commit is contained in:
@@ -454,7 +454,9 @@ public class PageController : MonoBehaviour
|
||||
}
|
||||
h.nextObject = chanraotuibu;
|
||||
}
|
||||
shose.SetActive(false); // 确保一开始隐藏
|
||||
// 确保一开始鞋子模型可见,但不闪烁且不可点击
|
||||
shose.SetActive(true);
|
||||
h.enabled = false;
|
||||
}
|
||||
|
||||
if (point2 != null)
|
||||
@@ -466,8 +468,7 @@ public class PageController : MonoBehaviour
|
||||
if (h2 == null) h2 = point2.AddComponent<Point2ClickHandler>();
|
||||
if (h2.nextObject == null) h2.nextObject = shose;
|
||||
|
||||
point2.SetActive(true);
|
||||
Debug.Log("PageController: 开场动画结束,point2 已立刻激活");
|
||||
point2.SetActive(false);
|
||||
}
|
||||
|
||||
// 1. 强制播放第一句语音:“周围环境安全,我是救护志愿者,我可以帮助您吗”
|
||||
@@ -497,9 +498,16 @@ public class PageController : MonoBehaviour
|
||||
|
||||
yield return new WaitForSeconds(waitTime);
|
||||
|
||||
// 2. 切换到 camera3 (注意原逻辑是切到 camera3,如果说是要在这里隐藏TipPanel)
|
||||
// 2. 切换到 camera3
|
||||
if (tipPanel != null) tipPanel.SetActive(false);
|
||||
if (am != null) am.SwitchToCamera3();
|
||||
|
||||
// 3. 切换相机后,显示 point2
|
||||
if (point2 != null)
|
||||
{
|
||||
point2.SetActive(true);
|
||||
Debug.Log("PageController: 镜头切换到camera3,point2 已显示");
|
||||
}
|
||||
}
|
||||
|
||||
private void HideShose()
|
||||
|
||||
Reference in New Issue
Block a user