37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using FSM;
|
|
using ZXKFramework;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class BenMaLvState : 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("心脏听诊》病理性心音》奔马律", null);
|
|
fsm.ShowNextPanel(() => {
|
|
ChatUI.Instance.CloseChatTxt();
|
|
fsm.StopClip("奔马律2");
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.StopClip("奔马律2");
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|