点击了当前步骤交互内容,则上方提示框消失

This commit is contained in:
丛刚 2025-02-12 09:19:44 +08:00
parent 3b0b20b178
commit 5cfb83ed70
2 changed files with 6 additions and 0 deletions

View File

@ -164,10 +164,12 @@ if(UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())return
} }
ClickToolCallInTrainState(rayHit.transform.gameObject, () => ClickToolCallInTrainState(rayHit.transform.gameObject, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(), false); JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(), false);
}); });
ClickToolCallInExamState(rayHit.transform.gameObject, () => ClickToolCallInExamState(rayHit.transform.gameObject, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(_CurSceneStep.QNextNum), false); JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(_CurSceneStep.QNextNum), false);
}); });
} }
@ -181,6 +183,7 @@ if(UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())return
GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip); GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip);
videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(_CurSceneStep.VideoPath, () => videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(_CurSceneStep.VideoPath, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep(); GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep();
}); });
}); });

View File

@ -399,6 +399,7 @@ namespace ZXK.LouDiXvMuNiu
{ {
PopUpMng.ThreeVideoChoicePanel(obj.Question, answers, answers, NiuSceneMng._Instance.GetOptionIndex(obj.OptionRight), isExam, () => PopUpMng.ThreeVideoChoicePanel(obj.Question, answers, answers, NiuSceneMng._Instance.GetOptionIndex(obj.OptionRight), isExam, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep(); GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep();
}); });
} }
@ -423,6 +424,7 @@ namespace ZXK.LouDiXvMuNiu
GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip); GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip);
videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(obj.VideoPath, () => videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(obj.VideoPath, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep(obj.QNextNum); GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep(obj.QNextNum);
}); });
} }
@ -432,6 +434,7 @@ namespace ZXK.LouDiXvMuNiu
GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowNoCtrlPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip); GameObject videoGeo = UI_Manage.Instance.ShowPanel("VideoShowNoCtrlPanel", Type.GetType("ZXK.LouDiXvMuNiu.VideoShowPanel"), UIGroup.Tip);
videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(obj.VideoPath, () => videoGeo.GetComponent<VideoShowPanel>().PlayVideoClip(obj.VideoPath, () =>
{ {
UI_Manage.Instance.HidePanel("ShowToastUIPrefab");
GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep(); GameManager.Instance._DataNiuHandler.CurNiuHandler.Value = GameManager.Instance._DataNiuHandler.GetNextStep();
}); });
} }