using Unity.Loader; using UnityEngine; using UnityEngine.EventSystems; namespace ZC { [Procedure(ProcedureType.体格检查Procedure)] class 体格检查Procedure : ProcedureBase { public override void OnEnter() { base.OnEnter(); ResourcesLocalComponent.Instance.LoadScene(AssetConst.Assets_DemoGame_GameRes_Scene_HuShiTaiScene_unity); var introduceUI = (IntroduceUI)Global.UIManager.ShowUI(UIType.IntroduceUI); introduceUI.SetData(ConstStr.体格检查, ConstStr.体格检查介绍, IntroduceUI_Callback); } private void IntroduceUI_Callback() { Global.UIManager.HideUI(UIType.IntroduceUI); var bigTipsUI = (BigTipsUI)Global.UIManager.ShowUI(UIType.BigTipsUI); bigTipsUI.SetData(ConstStr.移动到护士身边进行老人的体格检查); var binding = GameObject.FindObjectOfType(); var gameObject = binding.GetValue("体格检查点"); var triggerEvent = gameObject.GetOrAddComponent(); triggerEvent.SetData(PlayerMoveToPoint); } private void PlayerMoveToPoint() { Global.UIManager.HideUI(UIType.BigTipsUI); var introduceUI = (IntroduceUI)Global.UIManager.ShowUI(UIType.IntroduceUI); introduceUI.SetData(ConstStr.常规血液与尿液分析, ConstStr.常规血液与尿液分析介绍, IntroduceUI1_Callback); } private void IntroduceUI1_Callback() { Global.UIManager.HideUI(UIType.IntroduceUI); // var mIntroduceUI = (ModelDisplayUI)Global.UIManager.ShowUI(UIType.ModelDisplayUI); } } }