37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using FSM;
|
|
namespace YiLiao.JingMaiLiuZhiZhen
|
|
{
|
|
public class XuanGuaYeTiState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowCamera("XuanGuaYeTiState_Camera");
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.Show_Light_EnableInteraction("输液器插入氯化纳溶液");
|
|
fsm.ShowArrow("点击氯化纳溶液", "输液器插入氯化纳溶液", 0, 2, 5);
|
|
fsm.ShowTipBtn(() => {
|
|
fsm.Show_Light_EnableInteraction("输液器插入氯化纳溶液", true);
|
|
fsm.ShowArrow("点击氯化纳溶液", "输液器插入氯化纳溶液", 0, 0, 5, true);
|
|
},2);
|
|
fsm.InteractionDown("输液器插入氯化纳溶液", args => {
|
|
fsm.HideArrow();
|
|
fsm.HideTipBtn();
|
|
fsm.ShowCamera("XuanGuaYeTiState_Camera2");
|
|
fsm.AddScore(1, 1);
|
|
fsm.InteractionDown("输液器插入氯化纳溶液", null);
|
|
fsm.Hide_Unlight_DisableInteraction("输液器插入氯化纳溶液");
|
|
fsm.PlayClip("悬挂液体", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|