74 lines
2.6 KiB
C#
74 lines
2.6 KiB
C#
using FSM;
|
|
using ZXKFramework;
|
|
namespace DongWuYiXue.QiGuanChaGuan
|
|
{
|
|
public class GuDingDaoGuanState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
this.Log("进入固定导管状态");
|
|
fsm.Show("利多卡因纱布");
|
|
fsm.Light_EnableInteraction("利多卡因纱布");
|
|
fsm.Light_EnableInteraction("固定导管的高亮");
|
|
fsm.ShowCamera("固定导管_Camera");
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowArrow("请拖拽纱布", "利多卡因纱布");
|
|
|
|
fsm.ShowTipBtn(() =>
|
|
{
|
|
fsm.Light_EnableInteraction("利多卡因纱布", true);
|
|
fsm.Light_EnableInteraction("固定导管的高亮", true);
|
|
fsm.ShowArrow("请拖拽纱布", "利多卡因纱布", 0, 0, 5, true);
|
|
}, 2);
|
|
|
|
fsm.InteractionTrigger("利多卡因纱布", c =>
|
|
{
|
|
if (c.name.Equals("固定导管的高亮"))
|
|
{
|
|
fsm.HideTipBtn();
|
|
fsm.HideArrow();
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.AddScore(5, 0);
|
|
}
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
|
{
|
|
fsm.AddScore(4, 0);
|
|
}
|
|
fsm.Unlight_DisableInteraction("利多卡因纱布");
|
|
fsm.Unlight_DisableInteraction("固定导管的高亮");
|
|
fsm.Hide("利多卡因纱布");
|
|
fsm.PlayClip("固定导管_TimeLine", () =>
|
|
{
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
|
{
|
|
fsm.ShowTxtQuestion("插管后操作》固定导管》步骤2", 4, 1, 3, () =>
|
|
{
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.nextState = true;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.Unlight_DisableInteraction("利多卡因纱布");
|
|
fsm.Unlight_DisableInteraction("固定导管的高亮");
|
|
fsm.Hide("利多卡因纱布");
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|