2025-09-19 17:28:05 +08:00

45 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using FSM;
using System.Buffers;
using ZXKFramework;
namespace YiLiao.JingMaiLiuZhiZhen
{
public class CaoZuoHouBiaoQianHeDuiState : FsmState<FSMManager>
{
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowCamera("YaoYeBiaoQianHeDuiState_Camera");
fsm.ShowTip(0);
fsm.PlayBgm(0);
fsm.PlayClip("再次药液标签核对");
fsm.ShowSpeakPanel(new UnityEngine.Vector3(-220, 222),
"这是0.9%氯化钠注射液,剂量是100ml浓度是0.9%,通过静脉输液进入您的血管,患者姓名是王丽,请问这是您的名字吗?",
"名字", 2, 3, SpeakAction);
}
private void SpeakAction(int arg1, string arg2)
{
if (arg1 == 1)
{
fsm.AddScore(1,1);
}
else if (arg1 == 0)
{
fsm.AddScore(0,1);
}
else
{
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
}
fsm.PlayClip("再次药液标签核对2", () => {
fsm.nextState = true;
});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.PlayClip("药液标签核对Reset");
fsm.nextState = false;
}
}
}