using Cysharp.Threading.Tasks; using Unity.Loader; using UnityEngine; using UnityEngine.EventSystems; namespace ZC { [Procedure(ProcedureType.体格检查Procedure)] class 体格检查Procedure : ProcedureBase { TriggerEvent triggerEvent; public override void OnEnter() { base.OnEnter(); async UniTask Enter() { ResourcesLocalComponent.Instance.LoadScene(AssetConst.Assets_DemoGame_GameRes_Scene_HuShiTaiScene_unity); await CommonHelper.CloseLoadingAsync(); var introduceUI = (IntroduceUI)Global.UIManager.ShowUI(UIType.IntroduceUI); introduceUI.SetData(ConstStr.体格检查, ConstStr.体格检查介绍, IntroduceUI_Callback); } Enter().Forget(); } 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("常规血液与尿液分析点"); triggerEvent = gameObject.GetOrAddComponent(); triggerEvent.SetData(PlayerMoveToPoint); } private void PlayerMoveToPoint() { async UniTask Close() { triggerEvent.Dispose(); await CommonHelper.OpenLoadingAsync(); Global.UIManager.HideUI(UIType.BigTipsUI); Global.ProcedureManager.ChangeProcedure(ProcedureType.常规血液与尿液分析Procedure); } Close().Forget(); } } }