65 lines
2.2 KiB
C#
65 lines
2.2 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.InteractionTrigger("利多卡因纱布", c =>
|
|
{
|
|
if (c.name.Equals("固定导管的高亮"))
|
|
{
|
|
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(4, 3, 1, () =>
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|