44 lines
1.7 KiB
C#
44 lines
1.7 KiB
C#
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.ShowOnlyUI(UIType.IntroduceUI);
|
|
introduceUI.SetData(ConstStr.体格检查, ConstStr.体格检查介绍, IntroduceUI_Callback);
|
|
}
|
|
|
|
private void IntroduceUI_Callback()
|
|
{
|
|
Global.UIManager.HideUI(UIType.IntroduceUI);
|
|
var bigTipsUI = (BigTipsUI)Global.UIManager.ShowOnlyUI(UIType.BigTipsUI);
|
|
bigTipsUI.SetData(ConstStr.移动到护士身边进行老人的体格检查);
|
|
|
|
var binding = GameObject.FindObjectOfType<SceneGameObjectBinding>();
|
|
var gameObject = binding.GetValue("常规血液与尿液分析点");
|
|
var triggerEvent = gameObject.GetOrAddComponent<TriggerEvent>();
|
|
triggerEvent.SetData(PlayerMoveToPoint);
|
|
}
|
|
|
|
private void PlayerMoveToPoint()
|
|
{
|
|
Global.UIManager.HideUI(UIType.BigTipsUI);
|
|
var introduceUI = (IntroduceUI)Global.UIManager.ShowOnlyUI(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);
|
|
}
|
|
}
|
|
} |