2025-09-26 17:32:51 +08:00

40 lines
1.3 KiB
C#

using FSM;
using ZXKFramework;
namespace YiLiao.XinFeiTingZhen
{
public class DouXingXinDongGuoSuState : FsmState<FSMManager>
{
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowTip(0);
fsm.PlayBgm(0);
fsm.PlayClip("窦性心动过速");
fsm.Light_EnableInteraction("group22");
fsm.InteractionDown("group22", obj => {
fsm.StopBgm();
fsm.Unlight_DisableInteraction("group22");
fsm.InteractionDown("group22", null);
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
fsm.PlayClip("窦性心动过速2");
ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过速》步骤1",null);
fsm.ShowNextPanel(() => {
ChatUI.Instance.CloseChatTxt();
fsm.StopClip("窦性心动过速2");
fsm.ShowTxtQuestion("心脏听诊》病理性心音》窦性心动过速》步骤2", 2, 0, 0, () =>
{
fsm.nextState = true;
});
});
});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.StopClip("窦性心动过速2");
fsm.nextState = false;
}
}
}